Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Index;
         hashCode = (hashCode * 397) ^ PageSize;
         hashCode = (hashCode * 397) ^ ShowEmpty.GetHashCode();
         hashCode = (hashCode * 397) ^ OnlySelected.GetHashCode();
         hashCode = (hashCode * 397) ^ Lang;
         hashCode = (hashCode * 397) ^ MatchWholeWord.GetHashCode();
         hashCode = (hashCode * 397) ^ (TextToFind != null ? TextToFind.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #2
0
 protected bool Equals(GetPageParameters other)
 {
     return(Index == other.Index && PageSize == other.PageSize && ShowEmpty.Equals(other.ShowEmpty) && OnlySelected.Equals(other.OnlySelected) && Lang == other.Lang && MatchWholeWord.Equals(other.MatchWholeWord) && string.Equals(TextToFind, other.TextToFind) && string.Equals(Category, other.Category));
 }