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

            CopyBuffer(copyFrom);
        }
Beispiel #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));
        }
Beispiel #3
0
 private void CopyBuffer(LoggerLevelMap <T> copyFrom)
 {
     Array.Copy(copyFrom.values, this.values, this.values.Length);
 }
Beispiel #4
0
 public LoggerLevels(LoggerLevelMap <bool> copyFrom)
     : base(copyFrom)
 {
     MakeReadOnly();
 }