TestClassExtensions..::..GetFieldValue<(Of <(<'T, TType>)>)> Method (Object, String)

Gets the field value.

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

Syntax


public static T GetFieldValue<T, TType>(
	Object obj,
	string name
)
Public Shared Function GetFieldValue(Of T, TType) ( _
	obj As Object, _
	name As String _
) As T
public:
generic<typename T, typename TType>
static T GetFieldValue(
	Object^ obj, 
	String^ name
)

Type Parameters

T
TType
The type of the t type.

Parameters

obj
Type: Object
The object.
name
Type: String
The name.

Return Value

System.Nullable<T>.