private static or static private in a field declaration?

private static or static private in a field declaration?

Post by Charli » Wed, 02 May 2007 09:04:53


Hi:

I'm looking at some field declarations. Programmer has it static private
int x. Shouldn't it be private static int x? Doesn't the access modifier
come before variable modifier? But it compiles. How does this work?
Please explain.

Thanks,
Charlie
 
 
 

private static or static private in a field declaration?

Post by Michael » Wed, 02 May 2007 09:26:27


C# doesn't care which is used but I think private static is the usual.

Michael