Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DecimalAverageAggregationOperator.cs
- SelectionRangeConverter.cs
- MetadataArtifactLoaderCompositeResource.cs
- VirtualPathProvider.cs
- ServicePointManagerElement.cs
- DataTrigger.cs
- ElementHostAutomationPeer.cs
- DataGridViewCellCancelEventArgs.cs
- EventLogger.cs
- DataTable.cs
- Int64Animation.cs
- HtmlInputCheckBox.cs
- ContactManager.cs
- ToolStripTextBox.cs
- SQLSingleStorage.cs
- EntityProxyFactory.cs
- WebPartAuthorizationEventArgs.cs
- WebPartManager.cs
- RecognizedAudio.cs
- StorageMappingItemCollection.cs
- Function.cs
- WriterOutput.cs
- TextBox.cs
- Animatable.cs
- SplitterPanel.cs
- CollectionDataContractAttribute.cs
- AdornedElementPlaceholder.cs
- ComponentEditorPage.cs
- TraceUtility.cs
- ResourceReferenceExpressionConverter.cs
- StylusButton.cs
- ZeroOpNode.cs
- DataGridGeneralPage.cs
- PackageDigitalSignatureManager.cs
- NullReferenceException.cs
- XmlValueConverter.cs
- TabItem.cs
- Helper.cs
- Sorting.cs
- BaseAutoFormat.cs
- ReadOnlyCollectionBase.cs
- DbExpressionRules.cs
- TypeConverterAttribute.cs
- LogLogRecordHeader.cs
- UnsafeNetInfoNativeMethods.cs
- FlowDocumentReader.cs
- Emitter.cs
- PropertyPath.cs
- Rectangle.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CodePageUtils.cs
- AudioLevelUpdatedEventArgs.cs
- PolicyStatement.cs
- UserControl.cs
- PropVariant.cs
- StylusPointPropertyUnit.cs
- GridViewRowCollection.cs
- TypeLoadException.cs
- XPathMessageFilterElementComparer.cs
- FlowNode.cs
- ToolStripLocationCancelEventArgs.cs
- WebRequestModulesSection.cs
- XmlElementList.cs
- Rect3D.cs
- wgx_commands.cs
- SpecialFolderEnumConverter.cs
- TreeNodeBindingDepthConverter.cs
- VectorAnimation.cs
- WebPartEventArgs.cs
- SqlClientWrapperSmiStreamChars.cs
- VisualBrush.cs
- DisplayMemberTemplateSelector.cs
- UIElementParaClient.cs
- DropSource.cs
- DescriptionAttribute.cs
- AppLevelCompilationSectionCache.cs
- NativeMethods.cs
- HostAdapter.cs
- HttpRequest.cs
- DBDataPermissionAttribute.cs
- TreeIterator.cs
- DependencyObjectCodeDomSerializer.cs
- MobileControlsSection.cs
- VirtualDirectoryMappingCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- CodeThrowExceptionStatement.cs
- MatrixAnimationUsingKeyFrames.cs
- XmlSerializationReader.cs
- QuotedPairReader.cs
- ViewLoader.cs
- diagnosticsswitches.cs
- Metadata.cs
- GridViewRowPresenterBase.cs
- _NTAuthentication.cs
- RawMouseInputReport.cs
- ModuleBuilder.cs
- OleDbEnumerator.cs
- StylusCaptureWithinProperty.cs
- InheritedPropertyChangedEventArgs.cs
- ModelVisual3D.cs