using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Perforce.View { public class NavItem { public ViewModel.SELECTOR_TYPE Selector { get; set; } public string Path { get; set; } public bool Equals(NavItem other) { var same = false; if (other != null) { if (Selector == other.Selector) { if (Path == null) { if (other.Path == null) same = true; } else { if (Path.Equals(other.Path, StringComparison.CurrentCultureIgnoreCase)) { same = true; } } } } return same; } } }