TestClassExtensions..::..GetMethodValue<(Of <(<'TObject>)>)> Method

Gets the method value.

Namespace:  FastMoq.Extensions
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public static Object GetMethodValue<TObject>(
	TObject obj,
	string name,
	Object defaultValue,
	params Object[] args
)
Public Shared Function GetMethodValue(Of TObject) ( _
	obj As TObject, _
	name As String, _
	defaultValue As Object, _
	ParamArray args As Object() _
) As Object
public:
generic<typename TObject>
static Object^ GetMethodValue(
	TObject obj, 
	String^ name, 
	Object^ defaultValue, 
	... array<Object^>^ args
)

Type Parameters

TObject
The type of the t object.

Parameters

obj
Type: TObject
The object.
name
Type: String
The name.
defaultValue
Type: Object
The default value.
args
Type: array<Object>[]()[][]
The arguments.

Return Value

System.Nullable<System.Object>.