public object Clone() { EvictionPolicy policy = new EvictionPolicy(); policy.DefaultPriority = DefaultPriority != null ? (string)DefaultPriority.Clone(): null; policy.EvictionRatio = EvictionRatio; return(policy); }
/// <summary> /// Clona os dados da instancia. /// </summary> /// <returns></returns> public object Clone() { EvictionPolicy policy = new EvictionPolicy(); policy.Enabled = Enabled; policy.DefaultPriority = (DefaultPriority != null) ? ((string)DefaultPriority.Clone()) : null; policy.EvictionRatio = EvictionRatio; policy.Policy = Policy; return(policy); }