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