ArrayList.IsReadOnly Property tells whether the ArrayList is read-only.
Imports System Imports System.Collections Public Class SamplesArrayList Public Shared Sub Main() Dim myAL As New ArrayList() myAL.Add("A") myAL.Add("B") myAL.Add("C") Dim myReadOnlyAL As ArrayList = ArrayList.ReadOnly(myAL) If myAL.IsReadOnly Then Console.WriteLine("myAL is read-only.") Else Console.WriteLine("myAL is writable.") End If If myReadOnlyAL.IsReadOnly Then Console.WriteLine("myReadOnlyAL is read-only.") Else Console.WriteLine("myReadOnlyAL is writable.") End If End Sub End Class