Share via


PexInvariant.SetField<T>(Object, String, T) Method

Definition

Sets a field of an object.

public:
generic <typename T>
 static void SetField(System::Object ^ receiver, System::String ^ fieldName, T value);
public static void SetField<T> (object receiver, string fieldName, T value);
static member SetField : obj * string * 'T -> unit
Public Shared Sub SetField(Of T) (receiver As Object, fieldName As String, value As T)

Type Parameters

T

Parameters

receiver
Object

The object.

fieldName
String

Name of the field.

value
T

The value.

Applies to