public EmitStoreProperty(PropertyInfo property, IEmitterType targetObject, IEmitterType value) { MethodInfo method = property.GetSetMethod(); _callMethod = EmitMethod.Call(method, targetObject, value); ObjectType = _callMethod.ObjectType; }
public void Emit(CodeGenerator generator) { MethodInfo method = _property.GetGetMethod(); EmitMethod.Call(method, _source, null).Emit(generator); }