Sounds like a Resource Dictionary would be useful to you. You create string entries, give them a name and VS will generate properties with the same name to access the values through.
The other option would be Shared properties:
vbnet Code:
Public Class DefaultMasks Public Shared ReadOnly Property PhoneNumber As String Get Return "(999)000-0000" End Get End Property Public Shared ReadOnly Property ZipCode As String Get Return "00000-9999" End Get End Property End Class




Reply With Quote