Example #1
0
 private bool CheckFieldReferenceExpression(FieldReferenceExpression fieldRefExpression)
 {
     if (fieldRefExpression.get_Field() == null)
     {
         return(false);
     }
     if (this.propertyFieldDef != null)
     {
         return((object)fieldRefExpression.get_Field().Resolve() == (object)this.propertyFieldDef);
     }
     V_0 = fieldRefExpression.get_Field().Resolve();
     if (V_0 == null || (object)V_0.get_DeclaringType() != (object)this.propertyDef.get_DeclaringType())
     {
         return(false);
     }
     if (!V_0.HasCompilerGeneratedAttribute())
     {
         return(false);
     }
     this.propertyFieldDef = V_0;
     return(true);
 }