Ejemplo n.º 1
0
 internal static bool PropertyMatch(PropertyDefinition candidate, PropertyDefinition property)
 {
     return((MethodKey.MethodMatch(candidate.GetMethod, property.GetMethod) &&
             MethodKey.MethodMatch(candidate.SetMethod, property.SetMethod)) ||
            (MethodKey.MethodMatch(property.GetMethod, candidate.GetMethod) &&
             MethodKey.MethodMatch(property.SetMethod, candidate.SetMethod)));
 }
Ejemplo n.º 2
0
 private void MatchMethodGroup(MethodDefinition method, MethodGroup newGroup, Project project)
 {
     foreach (var baseMethod in type.TypeDefinition.Methods)
     {
         if (MethodKey.MethodMatch(baseMethod, method) ||
             MethodKey.MethodMatch(method, baseMethod))
         {
             newGroup.Methods.Add(new MethodKey(baseMethod));
             newGroup.External |= !project.Contains(type);
         }
     }
 }
Ejemplo n.º 3
0
 static bool MethodsMatch(MethodKey left, MethodKey right)
 {
     return(MethodKey.MethodMatch(left.Method, right.Method) ||
            MethodKey.MethodMatch(right.Method, left.Method));
 }
Ejemplo n.º 4
0
 static bool MethodsMatch(MethodKey[] methods, int i, int j)
 {
     return(MethodKey.MethodMatch(methods [i].Method, methods [j].Method));
 }