/// <summary> /// Writes the load cache data to the writer. /// </summary> private void WriteLoadCacheData(IBinaryRawWriter writer, ICacheEntryFilter <TK, TV> p, object[] args) { if (p != null) { var p0 = new CacheEntryFilterHolder(p, (k, v) => p.Invoke(new CacheEntry <TK, TV>((TK)k, (TV)v)), Marshaller, IsKeepBinary); writer.WriteObject(p0); } else { writer.WriteObject <CacheEntryFilterHolder>(null); } writer.WriteArray(args); }