public override int GetHashCode() { var hashCode = 139101280; hashCode = hashCode * -1521134295 + EqualityComparer <TTag> .Default.GetHashCode(Tag); hashCode = hashCode * -1521134295 + ValueLength.GetHashCode(); return(hashCode); }
/// <summary> /// /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { const int hashingBase = (int)2166136261; const int hashingMultiplier = 16777619; var hash = hashingBase; hash = (hash * hashingMultiplier) ^ (!(Name is null) ? Name.GetHashCode() : 0); hash = (hash * hashingMultiplier) ^ (GetType().GetHashCode()); hash = (hash * hashingMultiplier) ^ (!(TextValue is null) ? TextValue.GetHashCode() : 0); hash = (hash * hashingMultiplier) ^ (!(ValueLength is null) ? ValueLength.GetHashCode() : 0); return(hash); } }