M
Mark Ingram
Hi, I am having trouble setting a static property in a static constructor:
public ref class MyClass
{
static property Color DefaultColour;
static MyClass()
{
MyClass:efaultColor = Color::Black;
}
}
I get the error:
error C2039: 'DefaultColor' : is not a member of 'MyClass'
Where am I going wrong?
public ref class MyClass
{
static property Color DefaultColour;
static MyClass()
{
MyClass:efaultColor = Color::Black;
}
}
I get the error:
error C2039: 'DefaultColor' : is not a member of 'MyClass'
Where am I going wrong?