Quick silly question: is it possible to hide a variable name used by a property in VB.NET?
I am primarily a C# programmer, and am currently helping out a friend with some VB.NET stuff. Anyway, I have a String called stateprovincename
, and a Property called StateProvinceName
. VS does not appear to like this naming convention, and declares that they are in fact one and the same. Ideas?
VB.Net is case-insensitve.
_stateProvinceName
or mStateProvinceName
(discussion of naming conventions here). Get
and Set
. Public Property StateProvinceName As String
VB.Net unlike most other languages is not case sensitive with variable names, so standard convention would be add some kind of prefix to the local as to distinguish it from the property.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With