S
Stu Banter
I have an array filled with const Int32, right now it is defined just as a
public variable with an initializer.
// as it is now
public int [] myarr = new int [] {1,2,3,4,5}
// as it should be logically but doesn't work.
public const int [] myarr = new int [] {1,2,3,4,5}
If that is not possible, I considered making it a private var with a get
accessor only, but how do I make one for an array or one of its elements ?
Thanks for your replies
Stu
public variable with an initializer.
// as it is now
public int [] myarr = new int [] {1,2,3,4,5}
// as it should be logically but doesn't work.
public const int [] myarr = new int [] {1,2,3,4,5}
If that is not possible, I considered making it a private var with a get
accessor only, but how do I make one for an array or one of its elements ?
Thanks for your replies
Stu