/// <summary>Returns the hash code for this formatting arguments.</summary> /// <returns> /// A 32-bit signed integer hash code. /// </returns> public override int GetHashCode() { int hash = (m_Format == null) ? 0 : m_Format.GetHashCode(); if (m_FormatProvider != null) { hash ^= m_FormatProvider.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { var hashCode = ((int)(ThreadId & 0xFFFFFFFF) | (int)(ThreadId >> 32)); hashCode = (hashCode * 397) ^ FormatString.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Kind; hashCode = (hashCode * 397) ^ (FormatProvider != null ? FormatProvider.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Pattern != null ? Pattern.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FormatProvider != null ? FormatProvider.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FormatType; hashCode = (hashCode * 397) ^ ((int)(ThreadId & 0xFFFFFFFF) | (int)(ThreadId >> 32)); hashCode = (hashCode * 397) ^ Digits; hashCode = (hashCode * 397) ^ (IsUpperCase?1:0); return(hashCode); } }