Esempio n. 1
0
 public int GetHashCode(object obj)
 {
     return(obj switch
     {
         null => 0,
         DUserToken <TUserToken, TUser> x => GetHashCode(x),
         _ => throw new ArgumentException("", nameof(obj)),
     });
Esempio n. 2
0
 public bool Equals(DUserToken <TUserToken, TUser> other)
 {
     return(Id.Equals(other?.Id));
 }
Esempio n. 3
0
 public int GetHashCode(DUserToken <TUserToken, TUser> obj) =>
 obj.GetHashCode();
Esempio n. 4
0
 public bool Equals(DUserToken <TUserToken, TUser> x, DUserToken <TUserToken, TUser> y) =>
 x?.Equals(y) ?? false;