Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is a readonly field in VB.NET thread safe? For example, see the code below:
ReadOnly Name As String
ReadOnly ZIP As Integer = 98112
Sub New(ByVal Name As String)
Me.Name = Name
Yes, if nobody can write it, everyone is synced on its value.
Besides, you could make this integer constant (or shared readonly)
Required, but never shown