I have the following code in a public static class:
public static class MyList
{
public static readonly SortedList> CharList
The modifier readonly means that the value cannot be assigned except in the declaration or constructor. It does not mean that the assigned object becomes immutable.
If you want your object to be immutable, you must use a type that is immutable. The type ReadOnlyCollection