Check if a SortedList object has a fixed size in CSharp
Description
The following code shows how to check if a SortedList object has a fixed size.
Example
using System; /*from w ww .ja v a 2 s.c om*/
using System.Collections;
class MainClass {
public static void Main() {
SortedList sl = new SortedList();
sl.Add("a", "A");
sl.Add("b", "B");
sl.Add("c", "C");
sl.Add("d", "D");
Console.WriteLine(sl.IsFixedSize);
}
}
The code above generates the following result.