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

Gets the field.

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

Syntax


public static FieldInfo GetField<TObject>(
	TObject obj,
	string name
)
Public Shared Function GetField(Of TObject) ( _
	obj As TObject, _
	name As String _
) As FieldInfo
public:
generic<typename TObject>
static FieldInfo^ GetField(
	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.