1 //------------------------------------------------------------------------------
2 // <copyright file="Pair.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">Microsoft</owner>
6 //------------------------------------------------------------------------------
8 using System
.Diagnostics
;
10 namespace System
.Xml
.Xsl
{
11 internal struct Int32Pair
{
15 public Int32Pair(int left
, int 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
;
32 public override int GetHashCode() {
33 return this.left
.GetHashCode() ^
this.right
.GetHashCode();
37 internal struct StringPair
{
41 public StringPair(string left
, string right
) {
46 public string Left { get { return this.left ; }
}
47 public string Right { get { return this.right; }
}