TestClassExtensions..::..GetFieldValue<(Of <(<'TObject>)>)> Method (TObject, String, TObject)

Gets the field value.

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

Syntax


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

Type Parameters

TObject
The type of the t object.

Parameters

obj
Type: TObject
The object.
name
Type: String
The name.
defaultValue
Type: TObject
The default value.

Return Value

Nullable.