ObjectStateGetField Method (Object, String)

Typemock Isolator Developer Guide
Gets 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 Object GetField(
	Object obj,
	string fieldName
)

Parameters

obj
Type: SystemObject
The instance to read
fieldName
Type: SystemString
The name of the non-public field to modify.

Return Value

Type: Object
value whose type is specific to the field.
See Also

Reference