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

SendMessage() public static méthode

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

            if (methodInfo == null) return false;

            methodInfo.Invoke(o, parameters);

            return true;
        }

Same methods

MethodReflectionLibrary::SendMessage ( Type type, string message ) : bool