Skip to content

mikkelvalentinsorensen/MikValSor.ImmutableCollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple and small implementation of Immutable Collection.

Nuget package: https://www.nuget.org/packages/MikValSor.ImmutableCollection

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
**/

About

Simple and small implementation of Immutable Collection<T>

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages