Posted by Tygur
It's not pointless, because the values in readonly variables can possibly be different for different instances of the class, because their values can be changed in the constructor of the class.
Once he sets an initial value to a ReadOnly variable i think that it cannot be changed. For instance if you had a read only property
such as the following you would get a syntax error if you attempt to implement a Set block. From what i know of .Net so far declaring a variable ReadOnly is like using the final keyword in Java.
Code:
Public ReadOnly Property Age() As Integer
   Get 
      Return DateDiff(DateInterval.Year, BirthDate, Now())
   End Get
End Property