public override int GetHashCode() { return((A, StructuralComparisons.StructuralEqualityComparer.GetHashCode(B)).GetHashCode()); }
/// <summary> /// 获取当前结构化对象遍历元素得到的哈希代码。 /// </summary> /// <param name="value">要为其获取哈希代码的结构化对象。</param> /// <typeparam name="T">结构化对象的类型。</typeparam> /// <returns>遍历 <paramref name="value"/> 的元素得到的哈希代码。</returns> public static int GetStructuralHashCode <T>(this T?value) => StructuralEqualityComparer.GetHashCode(value);