Ejemplo n.º 1
0
 public virtual void PutField(FieldInstance field)
 {
     if (mv != null)
     {
         mv.PutField(field);
     }
 }
 protected void InvokeSetProperty(IMethodVisitor mv, IPropertyInfo property)
 {
     if (property is MethodPropertyInfo)
     {
         MethodInfo method = ((MethodPropertyInfo)property).Setter;
         mv.InvokeVirtual(new MethodInstance(method));
     }
     else
     {
         FieldInfo field = ((FieldPropertyInfo)property).BackingField;
         mv.PutField(new FieldInstance(field));
     }
 }