public override int GetHashCode() { int result = 17; unchecked { if (FormatId != null) { result = (result * 31) + FormatId.GetHashCode(); } if (Arguments != null) { foreach (var value_0 in Arguments) { result = result * 31; if (value_0 != null) { result = (result * 31) + value_0.GetHashCode(); } } } } return(result); }
public override int GetHashCode() { unchecked { int hash = 11; hash = hash * 17 + FormatId?.GetHashCode() ?? 0; hash = hash * 17 + FontId?.GetHashCode() ?? 0; hash = hash * 17 + FillId?.GetHashCode() ?? 0; hash = hash * 17 + BorderId?.GetHashCode() ?? 0; hash = hash * 17 + NumberFormatId?.GetHashCode() ?? 0; hash = hash * 17 + HasPivotButton?.GetHashCode() ?? 0; hash = hash * 17 + HasQuotePrefix?.GetHashCode() ?? 0; hash = hash * 17 + Alignment?.GetHashCode() ?? 0; hash = hash * 17 + Protection?.GetHashCode() ?? 0; return(hash); } }
/// <summary> /// Returns the hash code of the object. This is vital for performance of value types. /// </summary> /// <returns></returns> public override int GetHashCode() { return(FormatId.GetHashCode() ^ PropertyId); }