We consider another SegmentInfo instance equal if it has the same dir and same name.
SegmentInfo Class | Lucene.Net.Index Namespace