FormatterServices FormatterServices FormatterServices FormatterServices Class

Definition

Provides static methods to aid with the implementation of a Formatter for serialization. This class cannot be inherited.

public ref class FormatterServices abstract sealed
[System.Runtime.InteropServices.ComVisible(true)]
public static class FormatterServices
type FormatterServices = class
Public Class FormatterServices
Inheritance
FormatterServicesFormatterServicesFormatterServicesFormatterServices
Attributes

Methods

CheckTypeSecurity(Type, TypeFilterLevel) CheckTypeSecurity(Type, TypeFilterLevel) CheckTypeSecurity(Type, TypeFilterLevel) CheckTypeSecurity(Type, TypeFilterLevel)

Determines whether the specified Type can be deserialized with the TypeFilterLevel property set to Low.

GetObjectData(Object, MemberInfo[]) GetObjectData(Object, MemberInfo[]) GetObjectData(Object, MemberInfo[]) GetObjectData(Object, MemberInfo[])

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

GetSafeUninitializedObject(Type) GetSafeUninitializedObject(Type) GetSafeUninitializedObject(Type) GetSafeUninitializedObject(Type)

Creates a new instance of the specified object type.

GetSerializableMembers(Type) GetSerializableMembers(Type) GetSerializableMembers(Type) GetSerializableMembers(Type)

Gets all the serializable members for a class of the specified Type.

GetSerializableMembers(Type, StreamingContext) GetSerializableMembers(Type, StreamingContext) GetSerializableMembers(Type, StreamingContext) GetSerializableMembers(Type, StreamingContext)

Gets all the serializable members for a class of the specified Type and in the provided StreamingContext.

GetSurrogateForCyclicalReference(ISerializationSurrogate) GetSurrogateForCyclicalReference(ISerializationSurrogate) GetSurrogateForCyclicalReference(ISerializationSurrogate) GetSurrogateForCyclicalReference(ISerializationSurrogate)

Returns a serialization surrogate for the specified ISerializationSurrogate.

GetTypeFromAssembly(Assembly, String) GetTypeFromAssembly(Assembly, String) GetTypeFromAssembly(Assembly, String) GetTypeFromAssembly(Assembly, String)

Looks up the Type of the specified object in the provided Assembly.

GetUninitializedObject(Type) GetUninitializedObject(Type) GetUninitializedObject(Type) GetUninitializedObject(Type)

Creates a new instance of the specified object type.

PopulateObjectMembers(Object, MemberInfo[], Object[]) PopulateObjectMembers(Object, MemberInfo[], Object[]) PopulateObjectMembers(Object, MemberInfo[], Object[]) PopulateObjectMembers(Object, MemberInfo[], Object[])

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

Applies to

See also