Invokes the method on a specific object (null if static) using the provided parameters. The instance of the object to invoke its method. Use null for static methods. List of parameters to provide. The value returned by the method.
(object obj = null, object[] parameters = null)
| 699 | /// <param name="parameters">List of parameters to provide.</param> |
| 700 | /// <returns>The value returned by the method.</returns> |
| 701 | public object Invoke(object obj = null, object[] parameters = null) |
| 702 | { |
| 703 | if (parameters == null) |
| 704 | parameters = Array.Empty<object>(); |
| 705 | if (_managed is MethodInfo methodInfo) |
| 706 | return methodInfo.Invoke(obj, parameters); |
| 707 | if (_managed != null) |
| 708 | throw new NotSupportedException(); |
| 709 | return _custom.Invoke(obj, parameters); |
| 710 | } |
| 711 | } |
| 712 | |
| 713 | /// <summary> |
no outgoing calls
no test coverage detected