I wanted to know how to pass a read-only copy of an array, where neither the array nor the CONTENTS can be changed.
For example, if I say:
and use the Array.AsReadOnly() to pass it as readonly, then all they nead to do is (assuming the passed array is p()):
How do I prevent this?
For example, if I say:
VB.NET:
Dim t() as TextBox = New TextBox() {...}
VB.NET:
p(0).Text = "Text Cleared in a ReadOnly Array!!!"
How do I prevent this?