Exemple #1
0
 /// <summary>Get whether a type has a method whose signature matches the one expected by a method reference.</summary>
 /// <param name="type">The type to check.</param>
 /// <param name="reference">The method reference.</param>
 public static bool HasMatchingSignature(Type type, MethodReference reference)
 {
     return(type
            .GetMethods(BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public)
            .Any(method => RewriteHelper.HasMatchingSignature(method, reference)));
 }