public object this[string name]
{
set {
Type myType = GetType();
if(_behaviourType == enTestObjectBehaviourChangeType.Property) {
PropertyInfo propertyInfo = myType.GetProperty(name);
propertyInfo.SetValue(this, value, null);
}
else {
MethodInfo methodInfo = myType.GetMethod(name);
var methodBody = methodInfo.GetMethodBody();
if(methodBody != null)
{
byte[] MethodBodyAsByteArray = methodBody.GetILAsByteArray();
}
}
}
}