예제 #1
0
 public int GetHashCode(TVShowCreator obj)
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + obj.Id.GetHashCode();
         hash = hash * 23 + obj.Name.GetHashCode();
         return(hash);
     }
 }
예제 #2
0
 public bool Equals(TVShowCreator x, TVShowCreator y)
 => x.Id == y.Id && x.Name == y.Name;