Is a readonly field in VB.NET thread safe? For example, see the code below:
Class Customer
ReadOnly Name As String
ReadOnly ZIP As Integer = 98112
Sub New(ByVal Name As String)
Me.Name = Name
End Sub
End Class
Yes, if nobody can write it, everyone is synced on its value.
Besides, you could make this integer constant (or shared readonly)
fielddo you mean a variable or a property?