C# Hashtable IsFixedSize
Description
Hashtable IsFixedSize
gets a value indicating whether
the Hashtable has a fixed size.
Syntax
Hashtable.IsFixedSize
has the following syntax.
public virtual bool IsFixedSize { get; }
Example
using System;/*from w w w . j ava 2s. c om*/
using System.Collections;
class MainClass
{
public static void Main()
{
Hashtable hash = new Hashtable();
hash.Add("A", "1");
hash.Add("B", "2");
hash.Add("C", "3");
hash.Add("D", "4");
hash.Add("E", "5");
Console.WriteLine(hash.IsFixedSize);
}
}
The code above generates the following result.