using System; using System.Collections; public class ArrayIsFixedSize { public static void Main() { string[] strings = {"C#", ".NET"}; ListPropery (strings); } public static void ListPropery (IList iList) { Console.WriteLine ("IsFixedSize = {0}", iList.IsFixedSize); } }
Output:
IsFixedSize = True