public static void DoSomething()
{
int a;
string b;
//..do something
}
In the example above, i have declared two variables. Do they become static
Although available in C, static local variables are not supported in C#.
If you want a local static variable equivalent, you can create an instance variable on the class, or a static variable. Otherwise, consider if the method itself belongs to the static class and whether it should be part of a different type.