P
Pascal Berger
I need to know the name of a certain known static property. I need to
have something like this:
public classe MyClass {
public static int MyProperty {
get { return 0 }
}
}
public class TestClass {
public string GetNameOfProperty(...?...) {
...?...
}
public void Foo() {
string s = GetNameOfProperty(MyClass.MyProperty);
// s should now contain the string "MyProperty"
}
}
Is there a way to achieve this?
Thanks in advance
Pascal
have something like this:
public classe MyClass {
public static int MyProperty {
get { return 0 }
}
}
public class TestClass {
public string GetNameOfProperty(...?...) {
...?...
}
public void Foo() {
string s = GetNameOfProperty(MyClass.MyProperty);
// s should now contain the string "MyProperty"
}
}
Is there a way to achieve this?
Thanks in advance
Pascal