Array.IsReadOnly is use in determining whether array is read only or not.
Example of Array.IsReadOnly Property
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CSharpDemoApps
{
class Program
{
static void Main(string[] args)
{
// Creates and initializes a new integer array.
int[] myIntArray = new int[5] { 1, 2, 3, 4, 5 };
if (myIntArray.IsReadOnly)
Console.WriteLine("Array is Read Only");
else
Console.WriteLine("Array is NOT Read Only");
Console.ReadLine();
}
}
}