Is there a way to get an auto reference to a member function or property in c#?
I mean something like this:
class Foo {
bool prop;
public bool MyProp
{
get { return prop; }
set {
prop = value;
OnPropertyChanged(thismember);
}
}
}
And 'thismember' is something that automatically references the calling property ('MyProp'), of type System.Reflection.PropertyInfo or System.Reflection.MemberInfo?
Aucun commentaire:
Enregistrer un commentaire