public sealed class FormatterServices
|
| Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
| GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
| GetObjectData | Extracts the data from the specified object and returns it as an array of objects. |
| GetSerializableMembers | Overloaded:GetSerializableMembers(Type type) Gets all the serializable members for a class of the specified Type. |
| GetSerializableMembers | Overloaded:GetSerializableMembers(Type type, StreamingContext context) Gets all the serializable members for a class of the specified Type and in the provided StreamingContext. |
| GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
| GetTypeFromAssembly | Looks up the Type of the specified object in the provided Assembly. |
| GetUninitializedObject | Creates a new instance of the specified object type. |
| PopulateObjectMembers | Populates the specified object with values for each field drawn from the data array of objects. |
| ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
| Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
| MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
~FormatterServices(); |
public virtual int GetHashCode(); |
public static object[] GetObjectData( |
obj
members
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The obj or members parameter is null. An element of members is null. |
| SerializationException | An element of members does not represent a field. |
public static MemberInfo[] GetSerializableMembers( |
type
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The type parameter is null. |
public static MemberInfo[] GetSerializableMembers( |
type
context
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The type parameter is null. |
Currently, you do not need to do anything different unless context has the StreamingContextStates value StreamingContextStates.Clone set.
public Type GetType(); |
assem
name
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The assem parameter is null. |
type
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The type parameter is null. |
protected object MemberwiseClone(); |
public static object PopulateObjectMembers( |
obj
members
data
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The obj, members, or data parameter is null. An element of members is null. |
| ArgumentException | The length of members does not match the length of data. |
| SerializationException | An element of members is not an instance of FieldInfo. |
If an element in data is null, FormatterServices.PopulateObjectMembers does not write anything to that field.
public virtual string ToString(); |