Esempio n. 1
0
 private bool IsSetterCallsOnOtherTypes(Instruction instruction, TypeDefinition declaringType)
 {
     var methodCalled = (MethodReference)instruction.Operand;
     if (!PropertySetter(methodCalled) || CallingSystemMethod(methodCalled)) return false;
     return methodCalled.DeclaringType != declaringType &&
            !declaringType.IsSubClassOf(methodCalled.DeclaringType);
 }