public object Clone() { Writethru writethru = new Writethru(); writethru.enabled = enabled; writethru.Providers = Providers != null?Providers.Clone() as Provider[] : null; writethru.WriteBehind = WriteBehind != null?WriteBehind.Clone() as WriteBehind : null; return(writethru); }
private static Writethru GetWriteThru(Hashtable settings) { Writethru writeThru = new Writethru(); if (settings.ContainsKey("write-thru-providers")) { writeThru.Providers = GetProviders(settings["write-thru-providers"] as Hashtable); } if (settings.ContainsKey("write-behind")) { writeThru.WriteBehind = GetWriteBehind(settings["write-behind"] as Hashtable); } return(writeThru); }
public void Deserialize(Runtime.Serialization.IO.CompactReader reader) { readthru = reader.ReadObject() as Readthru; writehtru = reader.ReadObject() as Writethru; }