public class SurrogateSelector : ISurrogateSelector
|
ctor #1 | Default constructor. This constructor is called by derived class constructors to initialize state in this type. Initializes a new instance of the SurrogateSelector class. |
AddSurrogate | Adds a surrogate to the list of checked surrogates. |
ChainSelector | Adds the specified ISurrogateSelector that can handle a particular object type to the list of surrogates. |
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. |
GetNextSelector | Returns the next selector on the chain of selectors. |
GetSurrogate | Returns the surrogate for a particular type. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
RemoveSurrogate | Removes the surrogate associated with a given type. |
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:
public SurrogateSelector(); |
public virtual void AddSurrogate( |
type
context
surrogate
Exception Type | Condition |
---|---|
ArgumentNullException | The type or surrogate parameter is null. |
ArgumentException | A surrogate already exists for this type and context. |
public virtual void ChainSelector( |
selector
Exception Type | Condition |
---|---|
ArgumentNullException | The selector parameter is null. |
SerializationException | The selector is already on the list of selectors. |
~SurrogateSelector(); |
public virtual int GetHashCode(); |
public virtual ISurrogateSelector GetNextSelector(); |
public virtual ISerializationSurrogate GetSurrogate( |
type
context
selector
Exception Type | Condition |
---|---|
ArgumentNullException | The type parameter is null. |
public Type GetType(); |
protected object MemberwiseClone(); |
public virtual void RemoveSurrogate( |
type
context
Exception Type | Condition |
---|---|
ArgumentNullException | The type parameter is null. |
public virtual string ToString(); |