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

Gets the property.

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

Syntax


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

Type Parameters

TObject
The type of the t object.

Parameters

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

Return Value

Nullable.