Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BinaryParser.cs
- Content.cs
- Wrapper.cs
- RefExpr.cs
- Attributes.cs
- NextPreviousPagerField.cs
- ArraySegment.cs
- CompilerTypeWithParams.cs
- SelectionListDesigner.cs
- CallSiteOps.cs
- ImmutableCollection.cs
- WebZone.cs
- PackageRelationshipCollection.cs
- HttpHeaderCollection.cs
- XdrBuilder.cs
- ObjectCloneHelper.cs
- WebSysDisplayNameAttribute.cs
- SimpleWorkerRequest.cs
- DeleteMemberBinder.cs
- TypedCompletedAsyncResult.cs
- TrackBar.cs
- MimeParameters.cs
- ToolStripGripRenderEventArgs.cs
- TypeUnloadedException.cs
- ParagraphResult.cs
- XmlText.cs
- LayoutTable.cs
- Vector3DIndependentAnimationStorage.cs
- XmlRootAttribute.cs
- StorageInfo.cs
- RuntimeWrappedException.cs
- UnsafeNativeMethods.cs
- ParserExtension.cs
- TextComposition.cs
- GridViewCancelEditEventArgs.cs
- BindingList.cs
- RightsManagementEncryptionTransform.cs
- DoubleLink.cs
- _Semaphore.cs
- NodeLabelEditEvent.cs
- Menu.cs
- EdmFunctions.cs
- PointAnimationUsingKeyFrames.cs
- ObfuscateAssemblyAttribute.cs
- InfoCardProofToken.cs
- WebConvert.cs
- StoreAnnotationsMap.cs
- XmlReflectionImporter.cs
- ResXResourceReader.cs
- IResourceProvider.cs
- CellConstant.cs
- BooleanFunctions.cs
- FormsAuthenticationModule.cs
- HttpSessionStateWrapper.cs
- UrlPath.cs
- InheritanceRules.cs
- ArithmeticException.cs
- AsymmetricAlgorithm.cs
- BinaryObjectWriter.cs
- ToolStripSplitButton.cs
- ExceptionRoutedEventArgs.cs
- EntityTypeEmitter.cs
- DirectoryInfo.cs
- XmlBoundElement.cs
- TemplateInstanceAttribute.cs
- DesignerSelectionListAdapter.cs
- UIElement3D.cs
- DoubleCollectionValueSerializer.cs
- DataGridLinkButton.cs
- XamlTreeBuilderBamlRecordWriter.cs
- TypeEnumerableViewSchema.cs
- WebHttpBindingCollectionElement.cs
- AttributeCallbackBuilder.cs
- BezierSegment.cs
- EraserBehavior.cs
- X509SecurityTokenProvider.cs
- SqlMethodCallConverter.cs
- ResourcePool.cs
- StylusPointPropertyUnit.cs
- DragDrop.cs
- EncryptedXml.cs
- PresentationTraceSources.cs
- CompilerHelpers.cs
- FormViewModeEventArgs.cs
- GenerateScriptTypeAttribute.cs
- ConfigurationValue.cs
- EventLogPermissionEntryCollection.cs
- HttpBrowserCapabilitiesBase.cs
- ProfileGroupSettings.cs
- XmlSerializerVersionAttribute.cs
- NetMsmqBindingCollectionElement.cs
- TrueReadOnlyCollection.cs
- TextStore.cs
- Util.cs
- PathHelper.cs
- ProtocolState.cs
- RolePrincipal.cs
- CodeChecksumPragma.cs
- DependencyObjectProvider.cs
- OneOfElement.cs