System.Runtime.Serialization.FormatterServices.GetObjectData Method

Extracts the data from the specified object and returns it as an array of objects.

Syntax

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

Parameters

obj
The object to write to the formatter.
members
The members to extract from the object.

Returns

An array of object that contains data stored in members and associated with obj.

Remarks

For each supplied member of the members array the FormatterServices.GetObjectData(object, System.Reflection.MemberInfo[]) method extracts the value associated with the obj object, and returns it. The length of the returned array is the same as the length of the members array.

Requirements

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