Implements binding object serialization type.
Inheritance Hierarchy
System.Runtime.Serialization SerializationBinder
Nemiro.Data.Caching CacheBinder
Namespace: Nemiro.Data.Caching
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax
The CacheBinder type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | CacheBinder |
Methods
Name | Description | |
---|---|---|
![]() | BindToName | (Inherited from SerializationBinder.) |
![]() | BindToType |
Controls the binding of a serialized object to a type.
(Overrides SerializationBinder BindToType(String, String).) |
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Examples
using System.Reflection; public sealed class MyCacheBinder : System.Runtime.Serialization.SerializationBinder { public override Type BindToType(string assemblyName, string typeName) { return Type.GetType(String.Format("{0}, {1}", typeName, Assembly.GetExecutingAssembly().FullName)); } }
See Also