Пример #1
0
        public override bool Equals(object obj)
        {
            DirectoryInfoHashed other = (DirectoryInfoHashed)obj;

            if (other == null)
            {
                return(false);
            }
            return(DirectoryEqualityComparer.SamePath(other.m_wrapped, m_wrapped));
        }
Пример #2
0
 public DirectoryInfoHashed(DirectoryInfo wrapped)
 {
     m_wrapped  = wrapped;
     m_hashCode = DirectoryEqualityComparer.GetHashCodeStatic(wrapped);
 }