CacheBinder ClassNemiro.Data.dll
Implements binding object serialization type.
Inheritance Hierarchy

System Object
  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

public sealed class CacheBinder : SerializationBinder

The CacheBinder type exposes the following members.

Constructors

  NameDescription
Public methodCacheBinder
Top
Methods

  NameDescription
Public methodBindToName (Inherited from SerializationBinder.)
Public methodBindToType
Controls the binding of a serialized object to a type.
(Overrides SerializationBinder BindToType(String, String).)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
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