text: public override bool Equals(object obj){if (this == obj){return true;}if (obj is SegmentInfo){SegmentInfo other = (SegmentInfo)obj;return other.Dir == Dir && other.Name.Equals(Name, StringComparison.Ordinal);}else{return false;}}