public bool Equals(IconKey other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(_back == other._back && _fore == other._fore && _icon.CompareTo(other._icon) == 0 && _size == other._size); }