Invokes the method represented by the member set and returns its result.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public Object Invoke( params Object[] args ) |
| Visual Basic (Declaration) |
|---|
Public Function Invoke ( _ ParamArray args As Object() _ ) As Object |
Parameters
- args
- Type: array<
System..::.Object
>[]()[]
The method arguments.
Return Value
The method result.
Remarks
When the method set contains multiple overloads attempts to choose an overload that is compatible with the argument list or raises an exception if none is found.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if args is null. |
| MbUnit.Framework..::.MirrorException | Thrown if the operation failed because of a reflection problem such as when the member access is invalid or ambiguous. |
