Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / Pair.cs / 1305376 / 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
- ControlValuePropertyAttribute.cs
- CompositeActivityMarkupSerializer.cs
- TextContainer.cs
- NeutralResourcesLanguageAttribute.cs
- XmlReader.cs
- DesignDataSource.cs
- HwndStylusInputProvider.cs
- FixedSOMTableCell.cs
- LogExtent.cs
- RectAnimationUsingKeyFrames.cs
- WsatConfiguration.cs
- JavaScriptString.cs
- SqlXml.cs
- ContextProperty.cs
- NavigationWindowAutomationPeer.cs
- ClientBuildManagerCallback.cs
- Message.cs
- CheckBoxBaseAdapter.cs
- PartitionResolver.cs
- TabControl.cs
- COM2PictureConverter.cs
- ActivityDesigner.cs
- MultiAsyncResult.cs
- ComponentGuaranteesAttribute.cs
- SafeFileMapViewHandle.cs
- SchemaLookupTable.cs
- updateconfighost.cs
- OdbcTransaction.cs
- ResourceAttributes.cs
- CommonDialog.cs
- CurrentTimeZone.cs
- EtwTrace.cs
- EntityCommand.cs
- StrongNameIdentityPermission.cs
- TokenBasedSetEnumerator.cs
- UnsafeNativeMethods.cs
- cookie.cs
- CngAlgorithmGroup.cs
- TryLoadRunnableWorkflowCommand.cs
- SevenBitStream.cs
- SafeTimerHandle.cs
- OSFeature.cs
- ProfileProvider.cs
- FrameAutomationPeer.cs
- JournalEntryStack.cs
- EmissiveMaterial.cs
- TransactionScopeDesigner.cs
- ImageDrawing.cs
- Expression.cs
- _PooledStream.cs
- ObjectItemCollection.cs
- PreservationFileWriter.cs
- ComplexObject.cs
- PerfProviderCollection.cs
- UnionExpr.cs
- ADMembershipUser.cs
- DefaultSettingsSection.cs
- TraceHandler.cs
- SmtpNtlmAuthenticationModule.cs
- XMLUtil.cs
- DataGridItemEventArgs.cs
- Normalization.cs
- ListDataHelper.cs
- PassportAuthenticationModule.cs
- EditorPartDesigner.cs
- SQLDateTime.cs
- DragSelectionMessageFilter.cs
- EndpointBehaviorElement.cs
- RuntimeArgument.cs
- DragStartedEventArgs.cs
- DiagnosticTraceSchemas.cs
- RawUIStateInputReport.cs
- contentDescriptor.cs
- TranslateTransform3D.cs
- HwndTarget.cs
- FontWeights.cs
- storepermission.cs
- TextSegment.cs
- EntityContainerRelationshipSet.cs
- PropertyGeneratedEventArgs.cs
- WeakEventTable.cs
- Mouse.cs
- ClientBuildManager.cs
- coordinator.cs
- WorkflowOperationAsyncResult.cs
- PaperSource.cs
- PageThemeCodeDomTreeGenerator.cs
- WebConfigurationHostFileChange.cs
- CodeAttachEventStatement.cs
- ModelUtilities.cs
- OrthographicCamera.cs
- Pkcs7Recipient.cs
- HtmlInputHidden.cs
- WeakRefEnumerator.cs
- EnumerableRowCollectionExtensions.cs
- CfgArc.cs
- CommonEndpointBehaviorElement.cs
- WebRequestModuleElement.cs
- SpStreamWrapper.cs
- ListBindingConverter.cs