Click or drag to resize

XmlSurrogateSelector Methods

The XmlSurrogateSelector type exposes the following members.

Methods
 NameDescription
Public methodAddSurrogate(XmlSerializationSurrogateForAttribute, IXmlSerializationSurrogate) Adds a surrogate for the type specified in the XmlSerializationForAttribute.
Public methodAddSurrogate(Type, Int32, IXmlSerializationSurrogate) Adds a surrogate for the type
C#
type
.
Public methodAddSurrogate(String, String, Int32, IXmlSerializationSurrogate) Adds a surrogate for the type specified by assembly name, full type name, and version.
Protected methodAddTypeAndVersionIfHigher 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetFullyQualifiedTypeName(Type) Get the fully qualified name of a type. This includes the short assembly name; the full type name, and the version, separated by a comma.
Public methodStatic memberGetFullyQualifiedTypeName(Type, Int32) Get the fully qualified name of a type. This includes the short assembly name; the full type name, and the version, separated by a comma.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSurrogate(String) Get a serialization surrogate for the specified type.
Public methodGetSurrogate(Type) Get a serialization surrogate for the spezified type.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetVersion Get the serialization version of a type.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTraceLoadedAssembliesForSurrogates Scans all momentarily loaded assemblies for xml serialization surrogates. Only assemblies that are marked with the SupportsSerializationVersioningAttribute are scanned.
Top
See Also