예제 #1
0
 public static void Invoke(this MethodComplexInfo methodComplexInfo, object[] parameters = null)
 {
     if (methodComplexInfo.methodInfo.IsNotNull(out MethodInfo methodInfo))
     {
         methodInfo.Invoke(methodComplexInfo.container, parameters);
     }
 }
예제 #2
0
        public static T Invoke <T>(this MethodComplexInfo methodComplexInfo, object[] parameters = null)
        {
            if (methodComplexInfo.methodInfo.IsNotNull(out MethodInfo methodInfo))
            {
                return((T)methodInfo.Invoke(methodComplexInfo.container, parameters));
            }

            return(default);