Hey all.
I'm wondering if it's possible to have a class return a field of it's by default when it's used on the right hand side.
for example:
Code:namespace NAME_SPACE
{
class MyClass
{
public int MyInt;
public int MyClass //I'm guessing something like this?
{
get
{
return MyInt;
}
set
{
MyInt = value;
}
}
static Main(string [] args)
{
int foo = MyClass; //NOTE THIS HERE
}
}