FormatterServices Class
Collapse the table of content
Expand the table of content

FormatterServices Class


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

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)


public static class FormatterServices

System_CAPS_pubmethodSystem_CAPS_staticCheckTypeSecurity(Type, TypeFilterLevel)

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

System_CAPS_pubmethodSystem_CAPS_staticGetObjectData(Object, MemberInfo[])

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


Creates a new instance of the specified object type.


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

System_CAPS_pubmethodSystem_CAPS_staticGetSerializableMembers(Type, StreamingContext)

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


Returns a serialization surrogate for the specified ISerializationSurrogate.

System_CAPS_pubmethodSystem_CAPS_staticGetTypeFromAssembly(Assembly, String)

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


Creates a new instance of the specified object type.

System_CAPS_pubmethodSystem_CAPS_staticPopulateObjectMembers(Object, MemberInfo[], Object[])

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

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
© 2016 Microsoft