Class DefaultSerializationBinder
The default serialization binder used when resolving and loading classes from type names.
Inheritance
System.Object
System.Runtime.Serialization.SerializationBinder
DefaultSerializationBinder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class DefaultSerializationBinder : SerializationBinder
Fields
| Improve this Doc View SourceInstance
Declaration
public static readonly DefaultSerializationBinder Instance
Field Value
Type | Description |
---|---|
DefaultSerializationBinder |
Methods
| Improve this Doc View SourceBindToName(Type, out String, out String)
When overridden in a derived class, controls the binding of a serialized object to a type.
Declaration
public override void BindToName(Type serializedType, out string assemblyName, out string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serializedType | The type of the object the formatter creates a new instance of. |
System.String | assemblyName | Specifies the System.Reflection.Assembly name of the serialized object. |
System.String | typeName | Specifies the System.Type name of the serialized object. |
Overrides
System.Runtime.Serialization.SerializationBinder.BindToName(System.Type, System.String, System.String)
|
Improve this Doc
View Source
BindToType(String, String)
When overridden in a derived class, controls the binding of a serialized object to a type.
Declaration
public override Type BindToType(string assemblyName, string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyName | Specifies the System.Reflection.Assembly name of the serialized object. |
System.String | typeName | Specifies the System.Type name of the serialized object. |
Returns
Type | Description |
---|---|
System.Type | The type of the object the formatter creates a new instance of. |
Overrides
System.Runtime.Serialization.SerializationBinder.BindToType(System.String, System.String)