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

Gets the field value.

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

Syntax


public static T GetFieldValue<T>(
	Object obj,
	FieldInfo field
)
Public Shared Function GetFieldValue(Of T) ( _
	obj As Object, _
	field As FieldInfo _
) As T
public:
generic<typename T>
static T GetFieldValue(
	Object^ obj, 
	FieldInfo^ field
)

Type Parameters

T

Parameters

obj
Type: Object
The object.
field
Type: FieldInfo
The field.

Return Value

System.Nullable<T>.