System.MethodReflectionLibrary.SendMessage C# (CSharp) Méthode

SendMessage() public static méthode

public static SendMessage ( Type type, string message ) : bool
type Type
message string
Résultat bool
        public static bool SendMessage(this Type type, string message, params object[] parameters)
        {
            var methodInfo = type.GetMethod(message, ReflectionLibrary.STATIC_MEMBER_BINDING_FLAGS, null,
                parameters.GetTypeArray(), null);

            if (methodInfo == null) return false;

            methodInfo.Invoke(null, parameters);

            return true;
        }

Same methods

MethodReflectionLibrary::SendMessage ( object o, string message ) : bool