public AniListStudioData(bool isMain, StudioName node) { IsMain = isMain; this.node = node; }
public override int GetHashCode() { //it means that in some point, it could cause an overflow of int value. And we are okay with that unchecked { const int HashingBase = (int)2166136261; const int HashingMultiplier = 16777619; int hash = HashingBase; hash = (hash * HashingMultiplier) ^ (!object.ReferenceEquals(null, StudioName) ? StudioName.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!object.ReferenceEquals(null, Id) ? Id.GetHashCode() : 0); hash = (hash * HashingMultiplier) ^ (!object.ReferenceEquals(null, Address) ? Address.GetHashCode() : 0); return(hash); } }