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
- TdsParserHelperClasses.cs
- GridViewRow.cs
- DataControlFieldTypeEditor.cs
- _SingleItemRequestCache.cs
- BooleanFunctions.cs
- AddInBase.cs
- BinaryNode.cs
- RequestCachePolicyConverter.cs
- CompositeTypefaceMetrics.cs
- WindowAutomationPeer.cs
- UniqueIdentifierService.cs
- Missing.cs
- UnsafeNativeMethods.cs
- MarkupWriter.cs
- EarlyBoundInfo.cs
- EventWaitHandle.cs
- TextContainer.cs
- ObjectComplexPropertyMapping.cs
- GuidConverter.cs
- ControlBuilder.cs
- ExpressionPrinter.cs
- IxmlLineInfo.cs
- OperationSelectorBehavior.cs
- MDIControlStrip.cs
- AVElementHelper.cs
- CodeAccessPermission.cs
- HostedElements.cs
- Binding.cs
- DoubleCollection.cs
- FloaterBaseParagraph.cs
- TextTreeRootTextBlock.cs
- TextBlock.cs
- DataGridViewBindingCompleteEventArgs.cs
- DataControlButton.cs
- InternalDuplexChannelFactory.cs
- TableColumnCollection.cs
- GB18030Encoding.cs
- StylusCollection.cs
- HtmlString.cs
- SqlNotificationRequest.cs
- TcpChannelHelper.cs
- Messages.cs
- DataKeyCollection.cs
- IsolatedStorage.cs
- MiniMapControl.xaml.cs
- ContextBase.cs
- SizeKeyFrameCollection.cs
- XpsImageSerializationService.cs
- ControlPager.cs
- ListViewSortEventArgs.cs
- UseAttributeSetsAction.cs
- UriTemplateTrieLocation.cs
- AtomPub10ServiceDocumentFormatter.cs
- DispatcherObject.cs
- ProcessModuleDesigner.cs
- TemplateGroupCollection.cs
- HandledMouseEvent.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlDataSourceNodeDescriptor.cs
- ElementProxy.cs
- ClientType.cs
- Size.cs
- ItemsPresenter.cs
- clipboard.cs
- Metadata.cs
- DisposableCollectionWrapper.cs
- Vars.cs
- Win32Native.cs
- DocumentPageHost.cs
- ThreadPool.cs
- RtfToXamlLexer.cs
- PartialTrustValidationBehavior.cs
- Clipboard.cs
- ProcessHostFactoryHelper.cs
- SecurityState.cs
- ParseHttpDate.cs
- ApplicationId.cs
- WizardDesigner.cs
- EmptyReadOnlyDictionaryInternal.cs
- ObjectKeyFrameCollection.cs
- AttachedPropertyInfo.cs
- UnsafeNativeMethods.cs
- SchemaConstraints.cs
- TabletDevice.cs
- Listbox.cs
- FixedFlowMap.cs
- Image.cs
- QueryAccessibilityHelpEvent.cs
- iisPickupDirectory.cs
- LinkUtilities.cs
- RecordsAffectedEventArgs.cs
- UriWriter.cs
- WindowsFormsSectionHandler.cs
- InvokeProviderWrapper.cs
- WebScriptClientGenerator.cs
- HwndKeyboardInputProvider.cs
- ToolbarAUtomationPeer.cs
- FormViewInsertedEventArgs.cs
- WinFormsSecurity.cs
- MainMenu.cs