213.
how do you call the static members in a class?
View Description
public class MyBaseC
{
public struct MyStruct
{
public static int x = 100;
}
}
To refer to the static member x, use the fully qualified name, MyBaseC.MyStruct.x, unless the member is accessible from the same scope:
Console.WriteLine(MyBaseC.MyStruct.x);