Esempio n. 1
0
        public override bool Equals(object obj)
        {
            FixedArray <T> temp = obj as FixedArray <T>;

            if (temp == null)
            {
                return(false);
            }
            return(Equals(temp));
        }
Esempio n. 2
0
 public bool Equals(FixedArray <T> value)
 {
     if (ReferenceEquals(null, value))
     {
         return(false);
     }
     if (ReferenceEquals(this, value))
     {
         return(true);
     }
     return(_tailIndex == value._tailIndex &&
            _capacity == value._capacity &&
            Equals(_list, value._list));
 }