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