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;
9 
10 namespace System.Xml.Xsl {
11     internal struct Int32Pair {
12         private int left;
13         private int right;
14 
Int32PairSystem.Xml.Xsl.Int32Pair15         public Int32Pair(int left, int right) {
16             this.left = left;
17             this.right = right;
18         }
19 
20         public int Left  { get { return this.left ; } }
21         public int Right { get { return this.right; } }
22 
EqualsSystem.Xml.Xsl.Int32Pair23         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;
27             }
28 
29             return false;
30         }
31 
GetHashCodeSystem.Xml.Xsl.Int32Pair32         public override int GetHashCode() {
33             return this.left.GetHashCode() ^ this.right.GetHashCode();
34         }
35     }
36 
37     internal struct StringPair {
38         private string left;
39         private string right;
40 
StringPairSystem.Xml.Xsl.StringPair41         public StringPair(string left, string right) {
42             this.left = left;
43             this.right = right;
44         }
45 
46         public string Left  { get { return this.left ; } }
47         public string Right { get { return this.right; } }
48     }
49 }
50 
51 
52