simple c# question

D

DNB

I am wondering what is the difference between the following 2 functions
public static Test1()
{

}

Static public Test1()
{

}

--Pa Ji
 
G

Gareth Erskine-Jones

I am wondering what is the difference between the following 2 functions
public static Test1()
{

}

Static public Test1()
{

}

No real difference. A matter of taste. I think most people prefer the
first style. Neither example will compile btw - you've omitted the
return type.
 
J

Jeff Johnson

(It's pretty bad when you have to point out your own errors in a reply to
someone's post instead of someone else doing it for you :) )

I far prefer finding and fixing my own mistakes to having others do it for
me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top