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
- HttpRequest.cs
- IsolatedStorageFilePermission.cs
- ObjectKeyFrameCollection.cs
- TableItemPattern.cs
- Validator.cs
- Variant.cs
- EntityPropertyMappingAttribute.cs
- ConfigurationLocation.cs
- OutOfMemoryException.cs
- ImportException.cs
- SchemaComplexType.cs
- PeerChannelListener.cs
- CngProperty.cs
- GeneralTransform3DTo2DTo3D.cs
- XsltQilFactory.cs
- BooleanSwitch.cs
- VersionedStreamOwner.cs
- DataGridViewAdvancedBorderStyle.cs
- MaterialCollection.cs
- RoutedEventConverter.cs
- CodeTypeOfExpression.cs
- FixedSOMTableCell.cs
- MemberExpression.cs
- DummyDataSource.cs
- TimeSpanStorage.cs
- QueryConverter.cs
- PointAnimationBase.cs
- StylusPointPropertyInfoDefaults.cs
- ContainerUIElement3D.cs
- VersionPair.cs
- UniqueEventHelper.cs
- SqlCommandBuilder.cs
- SqlDesignerDataSourceView.cs
- ContextStack.cs
- SelectionPattern.cs
- VectorAnimation.cs
- ChannelManagerBase.cs
- FloatSumAggregationOperator.cs
- Publisher.cs
- SqlFunctionAttribute.cs
- DeclarationUpdate.cs
- MimeFormImporter.cs
- FixedBufferAttribute.cs
- ObjectAnimationUsingKeyFrames.cs
- InheritanceContextChangedEventManager.cs
- Effect.cs
- ProbeMatchesMessage11.cs
- CodeSubDirectory.cs
- MonthChangedEventArgs.cs
- DependentList.cs
- QueryStringConverter.cs
- StringAnimationBase.cs
- NotFiniteNumberException.cs
- PrintPageEvent.cs
- PixelShader.cs
- TcpHostedTransportConfiguration.cs
- RadioButton.cs
- SqlHelper.cs
- Transform3DGroup.cs
- SystemDiagnosticsSection.cs
- Privilege.cs
- SapiRecoInterop.cs
- DesignerAutoFormat.cs
- LogExtentCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- ResizeGrip.cs
- BasicBrowserDialog.cs
- XmlSchemaObject.cs
- StorageEndPropertyMapping.cs
- BinaryOperationBinder.cs
- CallContext.cs
- IntegerFacetDescriptionElement.cs
- DesignSurfaceManager.cs
- InheritanceAttribute.cs
- webclient.cs
- JsonServiceDocumentSerializer.cs
- ActivityCollectionMarkupSerializer.cs
- FontFamilyConverter.cs
- ExtensionQuery.cs
- ValueQuery.cs
- Peer.cs
- ContractMethodInfo.cs
- TextEffect.cs
- Speller.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TraceLevelStore.cs
- TaskHelper.cs
- ComPersistableTypeElement.cs
- DecodeHelper.cs
- RouteData.cs
- FileReservationCollection.cs
- NavigationFailedEventArgs.cs
- HelpInfo.cs
- InnerItemCollectionView.cs
- ToolbarAUtomationPeer.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Int64Converter.cs
- ComponentDispatcherThread.cs
- GlyphingCache.cs
- StatusBarPanel.cs