示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = OrdinalComparer.GetHashCode(this.ValueFormat);
         hashCode = (hashCode * 397) ^ OrdinalComparer.GetHashCode(this.SymbolFormat);
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = OrdinalComparer.GetHashCode(this.ValueFormat ?? string.Empty);
         hashCode = (hashCode * 397) ^ this.SymbolFormat.GetHashCode();
         hashCode = (hashCode * 397) ^ this.Unit.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     return(OrdinalComparer.GetHashCode(this.CompositeFormat ?? string.Empty));
 }
示例#4
0
 public override Int32 GetHashCode() => OrdinalComparer.GetHashCode(this);