ArrayList Class की IsFixedSize Property का उपयोग यह Value Get करने के लिए किया जाता है जो Indicate करती है कि ArrayList का Fixed Size है या नहीं।
निम्न Example IsFixedSize Property के उपयोग को दर्शाता है।
Example
using System; using System.Collections; class Demo { public static void Main() { ArrayList arrList = new ArrayList(); Console.WriteLine("Adding some numbers:"); arrList.Add(45); arrList.Add(78); Console.WriteLine(arrList.Count); Console.WriteLine("myArrayList.IsFixedSize = " + arrList.IsFixedSize); } }Output
Adding some numbers: 2 myArrayList.IsFixedSize = False
ऊपर हमने एक Array List Add किया है।
ArrayList arrList = new ArrayList();
फिर हमने Check किया कि क्या इसका Fixed Size है या नहीं।
Console.WriteLine("myArrayList.IsFixedSize = " + arrList.IsFixedSize);