Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / XmlUtils / System / Xml / Xsl / Pair.cs / 1 / Pair.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Diagnostics;
namespace System.Xml.Xsl {
internal struct Int32Pair {
private int left;
private int right;
public Int32Pair(int left, int right) {
this.left = left;
this.right = right;
}
public int Left { get { return this.left ; } }
public int Right { get { return this.right; } }
public override bool Equals(object other) {
if (other is Int32Pair) {
Int32Pair o = (Int32Pair) other;
return this.left == o.left && this.right == o.right;
}
return false;
}
public override int GetHashCode() {
return this.left.GetHashCode() ^ this.right.GetHashCode();
}
}
internal struct StringPair {
private string left;
private string right;
public StringPair(string left, string right) {
this.left = left;
this.right = right;
}
public string Left { get { return this.left ; } }
public string Right { get { return this.right; } }
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
using System;
using System.Diagnostics;
namespace System.Xml.Xsl {
internal struct Int32Pair {
private int left;
private int right;
public Int32Pair(int left, int right) {
this.left = left;
this.right = right;
}
public int Left { get { return this.left ; } }
public int Right { get { return this.right; } }
public override bool Equals(object other) {
if (other is Int32Pair) {
Int32Pair o = (Int32Pair) other;
return this.left == o.left && this.right == o.right;
}
return false;
}
public override int GetHashCode() {
return this.left.GetHashCode() ^ this.right.GetHashCode();
}
}
internal struct StringPair {
private string left;
private string right;
public StringPair(string left, string right) {
this.left = left;
this.right = right;
}
public string Left { get { return this.left ; } }
public string Right { get { return this.right; } }
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CanExecuteRoutedEventArgs.cs
- CharEntityEncoderFallback.cs
- HandleRef.cs
- CreateUserWizardStep.cs
- KeyGestureValueSerializer.cs
- PolyQuadraticBezierSegment.cs
- AnchorEditor.cs
- ConfigurationFileMap.cs
- ReceiveActivityDesigner.cs
- DataContractSerializerServiceBehavior.cs
- StringComparer.cs
- ImplicitInputBrush.cs
- PrintDialogException.cs
- ContainerControl.cs
- SqlTypesSchemaImporter.cs
- TemplateControl.cs
- DragCompletedEventArgs.cs
- TempFiles.cs
- DescriptionAttribute.cs
- ProtocolException.cs
- OpenFileDialog.cs
- SimpleHandlerBuildProvider.cs
- CapabilitiesState.cs
- Calendar.cs
- ToolStripItemCollection.cs
- PeerResolverBindingElement.cs
- OleDbDataReader.cs
- WebPartVerb.cs
- FloaterParagraph.cs
- SimpleExpression.cs
- DiagnosticsConfiguration.cs
- SqlRowUpdatingEvent.cs
- iisPickupDirectory.cs
- ExtentCqlBlock.cs
- SqlProviderUtilities.cs
- PasswordBoxAutomationPeer.cs
- ResponseStream.cs
- ContentPresenter.cs
- ExceptionHandler.cs
- EntityParameter.cs
- AttributeQuery.cs
- HotSpotCollectionEditor.cs
- Helper.cs
- AdRotator.cs
- ItemsPresenter.cs
- CheckBoxFlatAdapter.cs
- RegexRunner.cs
- DesignerVerbCollection.cs
- SqlUDTStorage.cs
- unsafenativemethodstextservices.cs
- SafeNativeMethods.cs
- DesignSurface.cs
- BoundField.cs
- IsolatedStorageFilePermission.cs
- _NtlmClient.cs
- _OverlappedAsyncResult.cs
- AsyncOperation.cs
- AttachedAnnotationChangedEventArgs.cs
- AssertHelper.cs
- EntityDataSourceChangingEventArgs.cs
- FunctionDefinition.cs
- DataGridViewCellStyleBuilderDialog.cs
- xml.cs
- ILGenerator.cs
- PathGradientBrush.cs
- tibetanshape.cs
- WinInetCache.cs
- ClickablePoint.cs
- SynchronizedChannelCollection.cs
- DesignerAutoFormat.cs
- Stack.cs
- SpeechRecognizer.cs
- WorkflowTransactionOptions.cs
- RoutedPropertyChangedEventArgs.cs
- LabelDesigner.cs
- ComMethodElement.cs
- ApplicationContext.cs
- BezierSegment.cs
- ConsoleKeyInfo.cs
- Int32KeyFrameCollection.cs
- BigInt.cs
- SafePointer.cs
- ReversePositionQuery.cs
- SqlUtils.cs
- IndexerReference.cs
- HebrewNumber.cs
- WebPartManagerInternals.cs
- Tablet.cs
- ControlOperationBehavior.cs
- ParamArrayAttribute.cs
- HttpCachePolicyWrapper.cs
- XamlTreeBuilderBamlRecordWriter.cs
- CodeCastExpression.cs
- WhitespaceRule.cs
- AddDataControlFieldDialog.cs
- SliderAutomationPeer.cs
- TagMapCollection.cs
- basecomparevalidator.cs
- activationcontext.cs
- EventLogQuery.cs