Check if Array is read-only in CSharp
Description
The following code shows how to check if Array is read-only.
Example
/*from w ww . ja v a2 s .com*/
using System;
public class MainClass{
public static void Main(String[] argv){
Array myArray = new int[] { 1, 2, 4 };
Console.WriteLine(myArray.IsReadOnly);
}
}
The code above generates the following result.