ObjectStateSetField Method (Object, String, Object)

Typemock Isolator Developer Guide
Sets the value of a non-public field (member variable) of an instance.

Namespace:  TypeMock
Assembly:  TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax

public static void SetField(
	Object obj,
	string fieldName,
	Object value
)

Parameters

obj
Type: SystemObject
The instance to modify
fieldName
Type: SystemString
The name of the non-public field to modify.
value
Type: SystemObject
value whose type is specific to the field.
See Also

Reference