Search code examples
c#static-methods.net-1.0

Does the order of extern and static matter?


Comparing two files (old and new), I see:

private extern static void SipShowIM(uint dwFlag);

...in the old file, and:

private static extern void SipShowIM(uint dwFlag);

...in the new file.

Why they got changed I don't know; does it matter which comes first, the extern or the static?

UPDATE

Resharper must have done this, because I know I didn't do this (directly) but here's another difference between old:

public volatile static bool ProcessCommands = true;

...and new:

public static volatile bool ProcessCommands = true;

Solution

  • No, the order of those keywords does not matter.