IndexesStartAtOne 0.1.0

Allows the customization of where indexes start in C#. Not only can you force Roslyn to interpret items[1] as items[0], but also items[-42] and items[1_000_000] if you want! The sky (and common sense) are the only limits!

Install-Package IndexesStartAtOne -Version 0.1.0
dotnet add package IndexesStartAtOne --version 0.1.0
<PackageReference Include="IndexesStartAtOne" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IndexesStartAtOne --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

IndexesStartAtOne

A C# compiler plugin that makes all indexing operations in an assembly start at a given index (by default, 1).

Usage

Anywhere in your file,

[assembly: IndexesStartAtOne]

Then, you can use it however you want (see Tests).

Installation

Install-Package IndexesStartAtOne

Why?

Some men just want to watch the world burn. I'm one of them.

License

Do What the Fuck You Want To Public License

IndexesStartAtOne

A C# compiler plugin that makes all indexing operations in an assembly start at a given index (by default, 1).

Usage

Anywhere in your file,

[assembly: IndexesStartAtOne]

Then, you can use it however you want (see Tests).

Installation

Install-Package IndexesStartAtOne

Why?

Some men just want to watch the world burn. I'm one of them.

License

Do What the Fuck You Want To Public License

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.0 254 2/21/2018