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
- DataRecord.cs
- TextElementEditingBehaviorAttribute.cs
- CacheSection.cs
- DocumentGridContextMenu.cs
- CodeParameterDeclarationExpressionCollection.cs
- ResourceCategoryAttribute.cs
- ControlAdapter.cs
- RealizationContext.cs
- ArgumentNullException.cs
- UpdateException.cs
- TraceSwitch.cs
- RadioButtonFlatAdapter.cs
- ConnectionManagementElementCollection.cs
- WebPartCatalogAddVerb.cs
- HostSecurityManager.cs
- ObjectQuery_EntitySqlExtensions.cs
- CompositeScriptReferenceEventArgs.cs
- RegexInterpreter.cs
- TextEditorSpelling.cs
- CompilerLocalReference.cs
- ItemCollection.cs
- FlatButtonAppearance.cs
- ProviderConnectionPoint.cs
- FieldMetadata.cs
- KeyValueConfigurationElement.cs
- PreProcessInputEventArgs.cs
- ByteArrayHelperWithString.cs
- Missing.cs
- BufferBuilder.cs
- AuthenticationManager.cs
- DesignerForm.cs
- ControlTemplate.cs
- CultureTableRecord.cs
- TextProviderWrapper.cs
- VectorAnimationUsingKeyFrames.cs
- CultureSpecificStringDictionary.cs
- DeflateEmulationStream.cs
- SpellerError.cs
- NamespaceInfo.cs
- DesignerOptionService.cs
- CqlQuery.cs
- ImageUrlEditor.cs
- XPathMultyIterator.cs
- SourceItem.cs
- Literal.cs
- DataAdapter.cs
- SamlDelegatingWriter.cs
- WebRequestModuleElement.cs
- PeerIPHelper.cs
- Application.cs
- ConvertBinder.cs
- ToolStripPanelRow.cs
- SignerInfo.cs
- TextTreeText.cs
- unsafeIndexingFilterStream.cs
- FigureHelper.cs
- BrowserDefinitionCollection.cs
- ExpressionHelper.cs
- MatrixAnimationBase.cs
- ShadowGlyph.cs
- ResourceContainer.cs
- ApplicationServicesHostFactory.cs
- XmlConvert.cs
- LinkConverter.cs
- Semaphore.cs
- RelationshipDetailsRow.cs
- WebZone.cs
- SqlBooleanizer.cs
- COM2ColorConverter.cs
- HMAC.cs
- SerializationStore.cs
- WebPartConnectionsCancelEventArgs.cs
- SplitterCancelEvent.cs
- CacheVirtualItemsEvent.cs
- XPathMessageFilterElementCollection.cs
- StaticResourceExtension.cs
- Journaling.cs
- TokenBasedSet.cs
- TypeSystemHelpers.cs
- OuterGlowBitmapEffect.cs
- ManagementObject.cs
- MessageBox.cs
- FrameworkRichTextComposition.cs
- TextContainerChangeEventArgs.cs
- NodeInfo.cs
- RowSpanVector.cs
- _UriSyntax.cs
- IconConverter.cs
- XamlSerializationHelper.cs
- Point3DCollectionConverter.cs
- XmlSchema.cs
- ThicknessAnimationBase.cs
- ObservableCollection.cs
- MemberInfoSerializationHolder.cs
- SqlServer2KCompatibilityAnnotation.cs
- HttpModulesSection.cs
- XmlArrayItemAttributes.cs
- SelectedDatesCollection.cs
- OracleConnectionFactory.cs
- Point3DAnimation.cs