Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Data.SqlXml / System / Xml / Xsl / Pair.cs
blob46a8ad5e5aadfbb15d6c43254eeef59a00b62bef
1 //------------------------------------------------------------------------------
2 // <copyright file="Pair.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
7 using System;
8 using System.Diagnostics;
10 namespace System.Xml.Xsl {
11 internal struct Int32Pair {
12 private int left;
13 private int right;
15 public Int32Pair(int left, int right) {
16 this.left = left;
17 this.right = right;
20 public int Left { get { return this.left ; } }
21 public int Right { get { return this.right; } }
23 public override bool Equals(object other) {
24 if (other is Int32Pair) {
25 Int32Pair o = (Int32Pair) other;
26 return this.left == o.left && this.right == o.right;
29 return false;
32 public override int GetHashCode() {
33 return this.left.GetHashCode() ^ this.right.GetHashCode();
37 internal struct StringPair {
38 private string left;
39 private string right;
41 public StringPair(string left, string right) {
42 this.left = left;
43 this.right = right;
46 public string Left { get { return this.left ; } }
47 public string Right { get { return this.right; } }