C# SortedList IsFixedSize

Description

SortedList IsFixedSize gets a value indicating whether a SortedList object has a fixed size.

Syntax

SortedList.IsFixedSize has the following syntax.


public virtual bool IsFixedSize { get; }

Example


using System; /*from  w  w w .jav a2  s  .  c o m*/
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.





















Home »
  C# Tutorial »
    System.Collections »




ArrayList
BitArray
Comparer
Hashtable
Queue
SortedList
Stack