CacheInfo Binder Property Nemiro.Data.dll
Type serializer of custom objects.

Namespace: Nemiro.Data.Caching
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: (

public Type Binder { get; set; }

Property Value

Type: Type

Only for CacheType = File.


The following example shows sample code class CacheBinder.

You can copy it and use in owner projects.

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