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
- ConfigurationManagerInternalFactory.cs
- EventDescriptorCollection.cs
- ExpressionBinding.cs
- AuthenticationService.cs
- OdbcConnectionOpen.cs
- BindingGroup.cs
- ReflectionUtil.cs
- BaseDataList.cs
- LogExtentCollection.cs
- AutoGeneratedFieldProperties.cs
- ImageKeyConverter.cs
- XmlUtf8RawTextWriter.cs
- DiscoveryInnerClientAdhoc11.cs
- RegisteredHiddenField.cs
- AuthenticationManager.cs
- SplineKeyFrames.cs
- UnknownWrapper.cs
- XmlArrayItemAttribute.cs
- GridView.cs
- StylusPointProperties.cs
- X509SecurityTokenAuthenticator.cs
- AncestorChangedEventArgs.cs
- MemoryFailPoint.cs
- ExpressionQuoter.cs
- CharacterHit.cs
- DefaultTextStore.cs
- XmlSchemaSet.cs
- XmlSchemaComplexContentExtension.cs
- ConnectionConsumerAttribute.cs
- IPAddressCollection.cs
- ValidationVisibilityAttribute.cs
- SiteMapDataSource.cs
- DeadCharTextComposition.cs
- Composition.cs
- Visual3D.cs
- InteropEnvironment.cs
- SerializationStore.cs
- ObjectDataSourceMethodEventArgs.cs
- DataGridLinkButton.cs
- HtmlInputCheckBox.cs
- DataColumnPropertyDescriptor.cs
- WmlPanelAdapter.cs
- login.cs
- PropertyFilter.cs
- CommandField.cs
- AuthorizationRuleCollection.cs
- SchemaComplexType.cs
- HealthMonitoringSectionHelper.cs
- CommandBindingCollection.cs
- XmlWhitespace.cs
- UrlPropertyAttribute.cs
- DropTarget.cs
- ClaimSet.cs
- WindowPattern.cs
- DataShape.cs
- SystemWebCachingSectionGroup.cs
- MethodRental.cs
- TextDecoration.cs
- EpmCustomContentSerializer.cs
- TableParaClient.cs
- ManifestResourceInfo.cs
- BuildManager.cs
- AbsoluteQuery.cs
- WindowShowOrOpenTracker.cs
- AttributeCollection.cs
- QueryInterceptorAttribute.cs
- WindowShowOrOpenTracker.cs
- TileModeValidation.cs
- EmbeddedMailObjectCollectionEditor.cs
- BrowserCapabilitiesCodeGenerator.cs
- MouseGesture.cs
- SystemThemeKey.cs
- ReferenceConverter.cs
- WebColorConverter.cs
- CodeNamespaceImport.cs
- AutomationPatternInfo.cs
- XmlCountingReader.cs
- Int32Animation.cs
- FrameworkReadOnlyPropertyMetadata.cs
- MultiView.cs
- StringAttributeCollection.cs
- DataGridViewCellStyle.cs
- SqlDataSourceCustomCommandEditor.cs
- StateMachineHistory.cs
- ConfigurationManagerHelper.cs
- IResourceProvider.cs
- DataGridViewElement.cs
- __Error.cs
- BaseTransportHeaders.cs
- OdbcInfoMessageEvent.cs
- StyleSelector.cs
- GeneralTransform3DCollection.cs
- SystemResourceHost.cs
- FileInfo.cs
- DataView.cs
- ProfileService.cs
- Menu.cs
- TraceXPathNavigator.cs
- BigIntegerStorage.cs
- DbConnectionPoolGroupProviderInfo.cs