Is it correct to correct properties values on the fly?

Posted by Sein Kraft on Stack Overflow See other posts from Stack Overflow or by Sein Kraft
Published on 2010-05-15T02:50:37Z Indexed on 2010/05/15 3:04 UTC
Read the original article Hit count: 228

Filed under:
|

Is it correct to correct properties values on the fly?

for example: (note the .ToLower)

Public Property X() As String
   Get
      Return _x.ToLower
   End Get
   Set(ByVal Value As String)
      _x = value.ToLower
   End Set
End Property

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about properties