Hi
I'm a VB6 programmer and making a move towards VB.NET. It was a recommended practice to name variables as follows:
VB Code:
' Privates Private pvStrName as String Private pvLngCustID as Long Private pvDteDOB as Date
I've notice that in a few VB.NET samples some people use
VB Code:
Private _CustName as string Private _CustID as Long Public Property CustName as String Get CustName = _Custname End Get Set (value as String) _Custname = value End Set End Property
I've even read somewhere that with .NET you don't need to use the hungarian notation, i.e. prefixing variables with type names etc.
I know it all depends on preferences but I would like to adopt a proper naming convention for my .NET projects. Could someone please shed some light on this.
Thanks




Reply With Quote