PexInvariant.SetField<T>(Object, String, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.