learning C sharp

Status
Not open for further replies.

Steve36445

Well-known member
Joined
Dec 23, 2007
Messages
58
Programming Experience
10+
I have a reasonable knowledge of VB.net and am trying to learn C sharp.

I am used to using subroutines and functions in VB .net but can find no reference to them in C sharp.

Can someone point me in the right direction please.

Thanks,

Steve
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
First off, you use subroutines and functions in vb.net, if you use an event from any control (even the form load event) you're using a sub.

Secondly, in C#/Java a sub is merely a function that returns void.

For instance:
VB.NET:
Private Sub MySub
End Sub
Is the same as:
VB.NET:
private void MySub()
{
}
Third, this is a vb.net forum so C# questions probably wont get many answers here, especially since I've got to close the thread because this is a vb.net forum.
 
Status
Not open for further replies.
Top Bottom