Esempio n. 1
0
        public LoggerLevelMap(LoggerLevelMap <T> copyFrom)
        {
            if (copyFrom == null)
            {
                throw new ArgumentNullException("copyFrom");
            }

            CopyBuffer(copyFrom);
        }
Esempio n. 2
0
        // Object overrides
        public override bool Equals(object obj)
        {
            LoggerLevelMap <T> other = obj as LoggerLevelMap <T>;

            if (other == null)
            {
                return(false);
            }

            return(this.values.SequenceEqual(other.values));
        }
Esempio n. 3
0
 private void CopyBuffer(LoggerLevelMap <T> copyFrom)
 {
     Array.Copy(copyFrom.values, this.values, this.values.Length);
 }
Esempio n. 4
0
 public LoggerLevels(LoggerLevelMap <bool> copyFrom)
     : base(copyFrom)
 {
     MakeReadOnly();
 }