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

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

public Type Binder { get; set; }

Property Value

Type: Type
Remarks

Only for CacheType = File.

Examples

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