using Perforce.ViewModel; using System; namespace Perforce.Model { public class FavoriteFolderItem : IEquatable { public string FolderName { get; set; } public SELECTOR_TYPE Selector { get; set; } public string FolderPath { get; set; } public override int GetHashCode() { return (FolderPath + Selector.ToString()).GetHashCode(); } public bool Equals(FavoriteFolderItem other) { return (Selector == other.Selector && FolderPath.Equals(other.FolderPath, StringComparison.CurrentCultureIgnoreCase)); } } }