public override int GetHashCode()
{
if (this.HashCode == 0)
{
ValidateEntityToken();
this.HashCode = this.Type.GetHashCode() ^ this.Source.GetHashCode() ^ this.Id.GetHashCode();
}
return this.HashCode;
}
/// <exclude /> public bool EqualsWithVersionIgnore(object obj) { EntityToken entityToken = obj as EntityToken; if (entityToken == null) { return(false); } ValidateEntityToken(); if (entityToken.GetHashCode() != GetHashCode()) { return(false); } return(entityToken.Id == this.Id && entityToken.Type == this.Type && entityToken.Source == this.Source && entityToken.GetType() == this.GetType()); }