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
- PrimitiveDataContract.cs
- GridViewUpdatedEventArgs.cs
- MergeFilterQuery.cs
- dataprotectionpermission.cs
- PhysicalOps.cs
- Splitter.cs
- WindowsIdentity.cs
- AccessDataSourceView.cs
- Brushes.cs
- DataPagerFieldCommandEventArgs.cs
- HideDisabledControlAdapter.cs
- XsdCachingReader.cs
- MessageBodyDescription.cs
- WebBrowser.cs
- ErrorFormatterPage.cs
- CurrencyManager.cs
- TreeViewEvent.cs
- SizeLimitedCache.cs
- OleDbErrorCollection.cs
- Propagator.cs
- DataGridCommandEventArgs.cs
- NavigationProperty.cs
- ExecutionProperties.cs
- CursorConverter.cs
- WmiEventSink.cs
- GridViewRowCollection.cs
- StandardMenuStripVerb.cs
- ExpressionHelper.cs
- ClientProxyGenerator.cs
- SystemPens.cs
- RSAOAEPKeyExchangeFormatter.cs
- ShellProvider.cs
- CustomActivityDesigner.cs
- PreservationFileWriter.cs
- XmlFormatMapping.cs
- HttpListenerTimeoutManager.cs
- MappedMetaModel.cs
- ToolboxItemImageConverter.cs
- WmlObjectListAdapter.cs
- MemoryPressure.cs
- SignatureDescription.cs
- ParallelLoopState.cs
- SqlGenericUtil.cs
- OutputCacheProfileCollection.cs
- util.cs
- PageThemeCodeDomTreeGenerator.cs
- TreeNodeClickEventArgs.cs
- ReadOnlyDataSourceView.cs
- Environment.cs
- HelloOperationCD1AsyncResult.cs
- PeerToPeerException.cs
- PrincipalPermission.cs
- BatchParser.cs
- ResourcesBuildProvider.cs
- CommandExpr.cs
- RecognizerBase.cs
- PictureBoxDesigner.cs
- ColorDialog.cs
- MethodBody.cs
- Funcletizer.cs
- OverlappedContext.cs
- BindingExpressionBase.cs
- SplitterEvent.cs
- Vector3DAnimationUsingKeyFrames.cs
- Converter.cs
- SqlDelegatedTransaction.cs
- TakeOrSkipWhileQueryOperator.cs
- ThreadSafeList.cs
- DateTimeValueSerializerContext.cs
- SqlDataSourceFilteringEventArgs.cs
- TabControlDesigner.cs
- RedirectionProxy.cs
- HtmlInputReset.cs
- AxHost.cs
- TransactionFlowAttribute.cs
- VisualBasicExpressionConverter.cs
- RubberbandSelector.cs
- ShapingWorkspace.cs
- ResourceDictionaryCollection.cs
- CodeSnippetTypeMember.cs
- tooltip.cs
- ChangePassword.cs
- SqlCachedBuffer.cs
- NavigationEventArgs.cs
- JoinGraph.cs
- Misc.cs
- XslCompiledTransform.cs
- Function.cs
- SqlGatherConsumedAliases.cs
- DesignerVerbCollection.cs
- Identifier.cs
- PlaceHolder.cs
- FixUpCollection.cs
- ElementFactory.cs
- PageParserFilter.cs
- ServicesUtilities.cs
- InheritanceContextChangedEventManager.cs
- SqlDataSourceQueryEditorForm.cs
- TraversalRequest.cs
- Query.cs