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

Gets the property value.

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

Syntax


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

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.

Return Value

Nullable.