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
- ToolStripPanelRow.cs
- MenuItem.cs
- SqlFacetAttribute.cs
- QueryContinueDragEvent.cs
- XPathItem.cs
- SurrogateDataContract.cs
- DataServiceHostFactory.cs
- XmlSerializerNamespaces.cs
- SemanticValue.cs
- BamlTreeNode.cs
- TextSelectionHighlightLayer.cs
- listitem.cs
- HtmlCommandAdapter.cs
- ObjectDataSourceChooseTypePanel.cs
- InsufficientMemoryException.cs
- WebPartAddingEventArgs.cs
- CodeDomExtensionMethods.cs
- ItemsControlAutomationPeer.cs
- Graphics.cs
- ObjectDataSourceFilteringEventArgs.cs
- ScriptComponentDescriptor.cs
- _SingleItemRequestCache.cs
- SchemaNotation.cs
- ParameterCollection.cs
- ResourceDescriptionAttribute.cs
- HttpCacheParams.cs
- XmlAnyElementAttribute.cs
- ObjectMemberMapping.cs
- itemelement.cs
- StickyNoteContentControl.cs
- ToolboxItemCollection.cs
- TabControl.cs
- PersonalizationStateQuery.cs
- ToolStripSeparator.cs
- CurrentChangedEventManager.cs
- TabControlDesigner.cs
- CodeBlockBuilder.cs
- TreePrinter.cs
- GenericAuthenticationEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- WebPartDescription.cs
- DBAsyncResult.cs
- ColumnHeaderConverter.cs
- TabItemAutomationPeer.cs
- TreeNode.cs
- OleDbDataAdapter.cs
- GlyphElement.cs
- XPathSingletonIterator.cs
- StyleModeStack.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- ToolboxComponentsCreatedEventArgs.cs
- PinnedBufferMemoryStream.cs
- UnmanagedMemoryStreamWrapper.cs
- SharedDp.cs
- ToolTipService.cs
- ObjectDataSourceFilteringEventArgs.cs
- ValidationError.cs
- VectorAnimationBase.cs
- FilterQuery.cs
- Function.cs
- RichTextBoxAutomationPeer.cs
- InfoCardMasterKey.cs
- DirectoryNotFoundException.cs
- WindowsSolidBrush.cs
- Vector3DConverter.cs
- ListSortDescription.cs
- QilLiteral.cs
- UndoManager.cs
- Int32Rect.cs
- LinqTreeNodeEvaluator.cs
- ObjectMemberMapping.cs
- InternalRelationshipCollection.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SourceFilter.cs
- SynchronizedCollection.cs
- exports.cs
- InputScopeNameConverter.cs
- ConfigurationValues.cs
- PackagePart.cs
- Documentation.cs
- CounterCreationDataCollection.cs
- ParallelDesigner.cs
- FieldTemplateUserControl.cs
- SingleSelectRootGridEntry.cs
- LocationChangedEventArgs.cs
- HealthMonitoringSection.cs
- InstancePersistenceContext.cs
- CompoundFileReference.cs
- XNodeValidator.cs
- WindowClosedEventArgs.cs
- Separator.cs
- KernelTypeValidation.cs
- TableLayoutSettingsTypeConverter.cs
- InputReport.cs
- HGlobalSafeHandle.cs
- RootBuilder.cs
- DesignerCategoryAttribute.cs
- PathFigure.cs
- ObjectDataSource.cs
- RangeEnumerable.cs