/// <summary> /// Check if a type define both get and set for a given property. /// </summary> /// <param name="methodToLookFor"></param> /// <param name="typeToLookInto"></param> /// <returns></returns> private AccessModifierEnum IsPropertyMethodDefined(MethodSignature methodToLookFor, TypeDefinition typeToLookInto) { if (typeToLookInto != null) { if (typeToLookInto.HasMethods) { MethodSignature methodToCompare; foreach (MethodDefinition m in typeToLookInto.Methods) { methodToCompare = new MethodSignature(m); if (methodToLookFor == methodToCompare) { return(AnalysisUtils.GetMethodAccessModifier(m)); } } } } return(AccessModifierEnum.NONE); }