YamlDotNet.ReflectionExtensions.GetPublicInstanceMethod C# (CSharp) Method

GetPublicInstanceMethod() public static method

public static GetPublicInstanceMethod ( this type, string name ) : MethodInfo
type this
name string
return System.Reflection.MethodInfo
        public static MethodInfo GetPublicInstanceMethod(this Type type, string name)
        {
            return type.GetRuntimeMethods()
                .FirstOrDefault(m => m.IsPublic && !m.IsStatic && m.Name.Equals(name));
        }