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

Sets the field value.

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

Syntax


public static void SetFieldValue<TObject>(
	TObject obj,
	string name,
	Object value
)
Public Shared Sub SetFieldValue(Of TObject) ( _
	obj As TObject, _
	name As String, _
	value As Object _
)
public:
generic<typename TObject>
static void SetFieldValue(
	TObject obj, 
	String^ name, 
	Object^ value
)

Type Parameters

TObject
The type of the t object.

Parameters

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