System.Runtime.Serialization.FormatterServices.PopulateObjectMembers Method

Populates the specified object with values for each field drawn from the data array of objects.

Syntax

public static object PopulateObjectMembers (object obj, System.Reflection.MemberInfo[] members, object[] data)

Parameters

obj
The object to populate.
members
An array of System.Reflection.MemberInfo that describes which fields and properties to populate.
data
An array of object that specifies the values for each field and property to populate.

Returns

The newly populated object.

Remarks

If an element in data is null, FormatterServices.PopulateObjectMembers(object, System.Reflection.MemberInfo[], Object[]) does not write anything to that field.

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0