Beispiel #1
0
        public object Clone()
        {
            EvictionPolicy policy = new EvictionPolicy();

            policy.DefaultPriority = DefaultPriority != null ? (string)DefaultPriority.Clone(): null;
            policy.EvictionRatio   = EvictionRatio;
            return(policy);
        }
Beispiel #2
0
        /// <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);
        }