QuickFix.MessageCracker.IsHandlerMethod C# (CSharp) Method

IsHandlerMethod() public static method

public static IsHandlerMethod ( MethodInfo m ) : bool
m System.Reflection.MethodInfo
return bool
        public static bool IsHandlerMethod(MethodInfo m)
        {
            return (m.IsPublic == true
                && m.Name.Equals("OnMessage")
                && m.GetParameters().Length == 2
                && m.GetParameters()[0].ParameterType.IsSubclassOf(typeof(QuickFix.Message))
                && typeof(QuickFix.SessionID).IsAssignableFrom(m.GetParameters()[1].ParameterType)
                && m.ReturnType == typeof(void));
        }