Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ContentId.GetHashCode();
         hashCode = (hashCode * 397) ^ (IconImageUrl?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Id;
         return(hashCode);
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IconImageUrl != null ? IconImageUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DisplayOrder;
         hashCode = (hashCode * 397) ^ IsEnabled.GetHashCode();
         return(hashCode);
     }
 }
Example #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Category?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ ContentId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (IconImageUrl?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Levels?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RequiredLevels?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Reward?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (int)Type;
         return(hashCode);
     }
 }