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

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