public static void Invoke(this MethodComplexInfo methodComplexInfo, object[] parameters = null) { if (methodComplexInfo.methodInfo.IsNotNull(out MethodInfo methodInfo)) { methodInfo.Invoke(methodComplexInfo.container, parameters); } }
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);