Jellyfish.Commands.ServiceCommandHelper.IsMethodImplemented C# (CSharp) Method

IsMethodImplemented() private static method

private static IsMethodImplemented ( Type commandType, string methodName ) : bool
commandType System.Type
methodName string
return bool
        private static bool IsMethodImplemented(Type commandType, string methodName)
        {
            var m = ( commandType
                        .GetMethod( methodName, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance )
                        .DeclaringType );
            return !m.IsGenericType || m.GetGenericTypeDefinition() != typeof( ServiceCommand<> );
        }
    }