/// <summary> /// Indicates if <paramref name="obj"/> is equivalent to this object. /// </summary> /// <param name="obj">The object to compare</param> /// <returns><c>true</c> if <paramref name="obj"/> is equivalent, else <c>false</c></returns> public override bool Equals(object obj) { DiscFileSystemInfo asInfo = obj as DiscFileSystemInfo; if (obj == null) { return(false); } return(string.Compare(Path, asInfo.Path, StringComparison.Ordinal) == 0 && DiscFileSystem.Equals(FileSystem, asInfo.FileSystem)); }