HackmanC
February 11th, 2008, 02:09 PM
I have some trouble with generic var naming. I use to mix uppercase & lowercase to define my variables in case sensitive languages, something like this.
FileInfo fileInfo;
public void TheClass(FileInfo fileInfo) {
this.fileInfo = fileInfo;
}
I don't need to name fileInfo "TheInfoOfTheFile", fileInfo is great, but the code in VB becomes confusing. I cant imagine a good coding convection in VB. Could I have some advice ?
This is how I do it by now...
Private FileInfo1 As System.IO.FileInfo;
Public Sub New(ByVal FileInfo1 As System.IO.FileInfo)
Me.FileInfo1 = FileInfo1;
End Sub
FileInfo fileInfo;
public void TheClass(FileInfo fileInfo) {
this.fileInfo = fileInfo;
}
I don't need to name fileInfo "TheInfoOfTheFile", fileInfo is great, but the code in VB becomes confusing. I cant imagine a good coding convection in VB. Could I have some advice ?
This is how I do it by now...
Private FileInfo1 As System.IO.FileInfo;
Public Sub New(ByVal FileInfo1 As System.IO.FileInfo)
Me.FileInfo1 = FileInfo1;
End Sub