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
- DesignerActionVerbItem.cs
- InkCanvasInnerCanvas.cs
- ToolStripScrollButton.cs
- TextFormatterContext.cs
- UICuesEvent.cs
- ExceptionHandlers.cs
- SqlNode.cs
- SynchronizationContext.cs
- TraceContextEventArgs.cs
- IndexedEnumerable.cs
- PersonalizationStateInfo.cs
- ImportCatalogPart.cs
- SqlParameterizer.cs
- ProcessActivityTreeOptions.cs
- XmlAtomErrorReader.cs
- Camera.cs
- _NativeSSPI.cs
- XpsFont.cs
- FlatButtonAppearance.cs
- TextBoxView.cs
- Stack.cs
- Brush.cs
- DataGridViewImageCell.cs
- TextRunTypographyProperties.cs
- MetadataUtilsSmi.cs
- WindowsFont.cs
- DetailsViewUpdateEventArgs.cs
- XmlSchemaChoice.cs
- InkPresenter.cs
- DataBindEngine.cs
- PagedDataSource.cs
- TraceProvider.cs
- DetailsViewInsertEventArgs.cs
- FileEnumerator.cs
- HtmlTitle.cs
- ChangeConflicts.cs
- BitmapMetadataEnumerator.cs
- ChildDocumentBlock.cs
- PeerName.cs
- ComplusEndpointConfigContainer.cs
- RegistryPermission.cs
- DataGridHeaderBorder.cs
- ScriptingWebServicesSectionGroup.cs
- SeekStoryboard.cs
- ProfileSettings.cs
- PersonalizationProviderCollection.cs
- SplineKeyFrames.cs
- SqlDataSourceFilteringEventArgs.cs
- TextTrailingWordEllipsis.cs
- GeometryGroup.cs
- HistoryEventArgs.cs
- SourceItem.cs
- SelectorItemAutomationPeer.cs
- PackageRelationshipCollection.cs
- QilLiteral.cs
- RuntimeEnvironment.cs
- RtType.cs
- ClassValidator.cs
- ProbeDuplex11AsyncResult.cs
- AssertFilter.cs
- DataGridViewLinkCell.cs
- Vector3D.cs
- AliasedExpr.cs
- EncoderExceptionFallback.cs
- TextBlockAutomationPeer.cs
- ReversePositionQuery.cs
- WindowsToolbarAsMenu.cs
- InvokeSchedule.cs
- KeyInterop.cs
- GACIdentityPermission.cs
- Transform3D.cs
- WebPartActionVerb.cs
- GridLengthConverter.cs
- Activator.cs
- SerializationObjectManager.cs
- DeclarativeCatalogPart.cs
- OdbcConnectionStringbuilder.cs
- XmlParserContext.cs
- RowUpdatedEventArgs.cs
- XmlArrayItemAttributes.cs
- LogEntryDeserializer.cs
- ProviderConnectionPointCollection.cs
- InputMethodStateChangeEventArgs.cs
- ReaderOutput.cs
- WebPartZoneCollection.cs
- HttpClientCertificate.cs
- AttributeEmitter.cs
- ExternalCalls.cs
- Constants.cs
- XmlDocumentFragment.cs
- ClientScriptManagerWrapper.cs
- DynamicFilterExpression.cs
- OlePropertyStructs.cs
- ModelTreeEnumerator.cs
- DataBoundLiteralControl.cs
- EntitySetBase.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XamlFxTrace.cs
- HuffCodec.cs
- EntityDataSourceWrapperCollection.cs