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
- StsCommunicationException.cs
- SelectionEditor.cs
- ComboBoxRenderer.cs
- GridLength.cs
- SqlClientFactory.cs
- ArgumentException.cs
- ErrorItem.cs
- VScrollProperties.cs
- ValidatingReaderNodeData.cs
- OleDbStruct.cs
- MultiAsyncResult.cs
- MouseOverProperty.cs
- IODescriptionAttribute.cs
- UmAlQuraCalendar.cs
- Int32AnimationBase.cs
- ObjectManager.cs
- FrameworkTextComposition.cs
- WindowsRichEdit.cs
- SelectionItemProviderWrapper.cs
- SqlUtil.cs
- DecimalConverter.cs
- DecimalAnimationUsingKeyFrames.cs
- WaitHandleCannotBeOpenedException.cs
- SmiContextFactory.cs
- ActivationArguments.cs
- ToolboxControl.cs
- RectangleF.cs
- CodeAttachEventStatement.cs
- StringAnimationBase.cs
- StringAttributeCollection.cs
- DesignerProperties.cs
- OleDbParameterCollection.cs
- DrawListViewSubItemEventArgs.cs
- IInstanceTable.cs
- SymLanguageType.cs
- bidPrivateBase.cs
- InvalidWMPVersionException.cs
- HostSecurityManager.cs
- CompilerGeneratedAttribute.cs
- WindowsTitleBar.cs
- VectorAnimation.cs
- OrderedDictionaryStateHelper.cs
- TextLineBreak.cs
- CrossContextChannel.cs
- X509SecurityTokenAuthenticator.cs
- SpanIndex.cs
- MSAAWinEventWrap.cs
- DateRangeEvent.cs
- OneOfElement.cs
- FixedPageAutomationPeer.cs
- SerializableAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- AssociatedControlConverter.cs
- FixedSOMTable.cs
- ServiceReference.cs
- DigitShape.cs
- IndexingContentUnit.cs
- GroupQuery.cs
- ImageMapEventArgs.cs
- CompositionAdorner.cs
- DataFormat.cs
- _UncName.cs
- SqlDataSourceFilteringEventArgs.cs
- CustomPopupPlacement.cs
- ClientRuntimeConfig.cs
- EventMap.cs
- SecUtil.cs
- InnerItemCollectionView.cs
- EntityViewGenerationAttribute.cs
- ValidationResult.cs
- BookmarkScopeManager.cs
- QilPatternFactory.cs
- SQLDouble.cs
- DataGridColumnStyleMappingNameEditor.cs
- ResourceExpressionBuilder.cs
- HttpModulesSection.cs
- TypeBuilderInstantiation.cs
- GetCertificateRequest.cs
- ImportOptions.cs
- PointAnimationUsingPath.cs
- VerificationAttribute.cs
- StylusButtonEventArgs.cs
- GacUtil.cs
- TreeChangeInfo.cs
- ConstraintEnumerator.cs
- CompilerError.cs
- SessionStateModule.cs
- CompilerHelpers.cs
- ZeroOpNode.cs
- ImmutableObjectAttribute.cs
- ValueHandle.cs
- EngineSite.cs
- CodeAttributeDeclaration.cs
- ProcessStartInfo.cs
- EntityProviderServices.cs
- ObjectSecurity.cs
- path.cs
- EventLog.cs
- ExpressionDumper.cs
- C14NUtil.cs