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)

System.Object
  System.Runtime.Serialization.FormatterServices

<ComVisibleAttribute(True)>
Public NotInheritable Class FormatterServices

NameDescription
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.

System_CAPS_pubmethodSystem_CAPS_staticGetSafeUninitializedObject(Type)

Creates a new instance of the specified object type.

System_CAPS_pubmethodSystem_CAPS_staticGetSerializableMembers(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.

System_CAPS_pubmethodSystem_CAPS_staticGetSurrogateForCyclicalReference(ISerializationSurrogate)

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.

System_CAPS_pubmethodSystem_CAPS_staticGetUninitializedObject(Type)

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
Show: