Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ConcatQueryOperator.cs
- QueryReaderSettings.cs
- HttpModuleCollection.cs
- WindowProviderWrapper.cs
- GraphicsContext.cs
- XmlSchemaCompilationSettings.cs
- VirtualDirectoryMapping.cs
- ResourceReferenceExpression.cs
- SmiMetaDataProperty.cs
- AspNetHostingPermission.cs
- ProfileSection.cs
- XmlSchemaIdentityConstraint.cs
- OleDragDropHandler.cs
- NullPackagingPolicy.cs
- ClientSession.cs
- Main.cs
- ResourceCodeDomSerializer.cs
- ResXResourceSet.cs
- FontCacheLogic.cs
- BamlRecordHelper.cs
- RuntimeComponentFilter.cs
- ConfigurationPermission.cs
- Compilation.cs
- CheckableControlBaseAdapter.cs
- WebPartEditorApplyVerb.cs
- TextSelectionHelper.cs
- ProjectionCamera.cs
- KeyedHashAlgorithm.cs
- UriExt.cs
- ErrorRuntimeConfig.cs
- EventManager.cs
- RouteItem.cs
- CodePropertyReferenceExpression.cs
- ConfigurationSectionGroupCollection.cs
- BufferBuilder.cs
- MessageSecurityException.cs
- MultiByteCodec.cs
- FastPropertyAccessor.cs
- LinkLabelLinkClickedEvent.cs
- QilDataSource.cs
- CheckBoxAutomationPeer.cs
- InputScopeAttribute.cs
- RC2.cs
- CommentAction.cs
- SymbolMethod.cs
- NativeStructs.cs
- LocatorManager.cs
- Geometry3D.cs
- OrderByQueryOptionExpression.cs
- SmtpException.cs
- CoreChannel.cs
- MembershipUser.cs
- MailMessageEventArgs.cs
- DataGridSortingEventArgs.cs
- SafeRegistryHandle.cs
- VisualStyleInformation.cs
- LocalIdKeyIdentifierClause.cs
- GenerateTemporaryTargetAssembly.cs
- SelectionHighlightInfo.cs
- ToolboxItemWrapper.cs
- HashStream.cs
- FrameworkTemplate.cs
- XmlSchemaObjectTable.cs
- ObjectStateEntryDbDataRecord.cs
- EntityContainerEntitySet.cs
- _HeaderInfo.cs
- RegexWorker.cs
- dbenumerator.cs
- DictionaryKeyPropertyAttribute.cs
- XamlTreeBuilder.cs
- SchemaImporter.cs
- DetailsViewCommandEventArgs.cs
- PlaceHolder.cs
- XpsFilter.cs
- StructuralCache.cs
- SpellCheck.cs
- panel.cs
- WebResourceAttribute.cs
- ProcessHostMapPath.cs
- UserPersonalizationStateInfo.cs
- ByteArrayHelperWithString.cs
- TextTreeExtractElementUndoUnit.cs
- NetworkInformationPermission.cs
- DelegateHelpers.cs
- RemoveStoryboard.cs
- IndentedTextWriter.cs
- DocumentOrderQuery.cs
- ListViewDeleteEventArgs.cs
- ServiceMetadataPublishingElement.cs
- BypassElement.cs
- QueryIntervalOp.cs
- SyndicationLink.cs
- ByteStream.cs
- PromptStyle.cs
- ObjectHandle.cs
- regiisutil.cs
- BitmapSizeOptions.cs
- CodeVariableReferenceExpression.cs
- ObjectNavigationPropertyMapping.cs
- ForeignConstraint.cs