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))); }
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); } } }
static bool MethodsMatch(MethodKey left, MethodKey right) { return(MethodKey.MethodMatch(left.Method, right.Method) || MethodKey.MethodMatch(right.Method, left.Method)); }
static bool MethodsMatch(MethodKey[] methods, int i, int j) { return(MethodKey.MethodMatch(methods [i].Method, methods [j].Method)); }