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

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