MikValSor.ImmutableCollection 1.0.5

Simple and small implementation of Immutable Collection.

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

Simple and small implementation of Immutable Collection.

ImmutableCollection Example:

void ImmutableCollectionExample()
{
	var source = new char[] { 'A' };
	var immutableCollection = new MikValSor.Immutable.ImmutableCollection<char>(source);

	//Change the source
	source[0] = 'B';

	//ImmutableCollection is the same
	System.Console.WriteLine($"immutableCollection[0]: {immutableCollection[0]}");
}
/**
	Output:
	immutableCollection[0]: A
**/

Simple and small implementation of Immutable Collection.

ImmutableCollection Example:

void ImmutableCollectionExample()
{
	var source = new char[] { 'A' };
	var immutableCollection = new MikValSor.Immutable.ImmutableCollection<char>(source);

	//Change the source
	source[0] = 'B';

	//ImmutableCollection is the same
	System.Console.WriteLine($"immutableCollection[0]: {immutableCollection[0]}");
}
/**
	Output:
	immutableCollection[0]: A
**/

Release Notes

1.0.5
- Added ImmutableCollectionBase<T> to ease creation of Immutable collection classes.
- Added documentation to libary.
1.0.4
- Changed to use inner array instead of ImmutableCollection.

1.0.3
- Made ImmutableCollection<T> serializable.

1.0.2
- Added EnumerableExtender like: IEnumearble<T>.ToImmutable()

1.0.1
- Fixed typo in class name.

1.0.0
- Initial release.

  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated
1.0.5 188 5/8/2018
1.0.4 292 5/4/2018
1.0.3 178 5/4/2018
1.0.2 182 5/3/2018
1.0.1 176 5/2/2018
1.0.0 182 5/2/2018