Check IList IsFixedSize property
| C# Code Snippets |
| See also |
| edit |
This C# code snippet determines if an array has a fixed size using the IsFixedSize property of the IList interface.
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); } }
| IList IsFixedSize example (program output) |
| IsFixedSize = True |