Reputation: 13839
In C# you can do this to make your member variable immutable:
public readonly int y = 5;
What is the equivalent "readonly" keyword in VB.NET?
Upvotes: 6
Views: 1098
Reputation: 56448
Amazingly enough, it's ReadOnly
Upvotes: 17