Let's assume we have the following class:
public class tx_fct
{
int _ok;
public int ok
{
get
{
return _ok;
}
set
{
_ok = value;
}
}
}
How can I override the getter using reflection?
The getter doesn't seem to be in tx_fct1.ok.GetType().GetMethods()
.
When I do get access to the getter, how do I insert my own getter code?