simple c# question

  • Thread starter Thread starter DNB
  • Start date Start date
D

DNB

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

}

Static public Test1()
{

}

--Pa Ji
 
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.
 
(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.
 
Back
Top