Esempio n. 1
0
            public EmitStoreProperty(PropertyInfo property, IEmitterType targetObject, IEmitterType value)
            {
                var method = property.GetSetMethod();

                _callMethod = EmitMethod.Call(method, targetObject, value);
                ObjectType  = _callMethod.ObjectType;
            }
Esempio n. 2
0
            public void Emit(CodeGenerator generator)
            {
                var method = _property.GetGetMethod();

                EmitMethod.Call(method, _source, null).Emit(generator);
            }