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
- Point4D.cs
- WindowsAuthenticationModule.cs
- MobileControlBuilder.cs
- MetadataWorkspace.cs
- ForceCopyBuildProvider.cs
- XPathNavigatorReader.cs
- FormParameter.cs
- ManualResetEvent.cs
- StorageEntityContainerMapping.cs
- HttpListener.cs
- CodeTypeDeclarationCollection.cs
- SiteMembershipCondition.cs
- EntityModelBuildProvider.cs
- ScrollChrome.cs
- RightNameExpirationInfoPair.cs
- SqlTypeConverter.cs
- DataTrigger.cs
- PartialCachingAttribute.cs
- LoadGrammarCompletedEventArgs.cs
- DataControlFieldCell.cs
- PropertyStore.cs
- BamlResourceDeserializer.cs
- FormCollection.cs
- ActivityCodeDomReferenceService.cs
- DataSourceHelper.cs
- EventTrigger.cs
- ErrorRuntimeConfig.cs
- OrderPreservingMergeHelper.cs
- Button.cs
- UserNameSecurityTokenAuthenticator.cs
- LinearKeyFrames.cs
- LZCodec.cs
- SystemNetHelpers.cs
- CalendarDesigner.cs
- CfgParser.cs
- userdatakeys.cs
- UInt32Storage.cs
- HtmlControlPersistable.cs
- DynamicUpdateCommand.cs
- DataControlField.cs
- ValidatorCompatibilityHelper.cs
- ArraySegment.cs
- cache.cs
- EntityDataSourceWrapper.cs
- ListDictionaryInternal.cs
- MetafileHeaderWmf.cs
- OdbcConnectionString.cs
- InvalidEnumArgumentException.cs
- BamlTreeMap.cs
- ApplicationId.cs
- Padding.cs
- SystemNetworkInterface.cs
- URL.cs
- PkcsUtils.cs
- DataGridRowAutomationPeer.cs
- BaseDataBoundControl.cs
- UnmanagedBitmapWrapper.cs
- ResourceReader.cs
- GeometryDrawing.cs
- EntryIndex.cs
- UnsafeNativeMethods.cs
- EtwTrace.cs
- XsltFunctions.cs
- PackageStore.cs
- XmlNotation.cs
- PointAnimationUsingKeyFrames.cs
- AccessDataSourceView.cs
- LocalIdKeyIdentifierClause.cs
- HttpCapabilitiesSectionHandler.cs
- MouseEventArgs.cs
- SimpleHandlerFactory.cs
- ActivityDesigner.cs
- Size3D.cs
- UIAgentMonitor.cs
- TemplatedWizardStep.cs
- EmptyEnumerable.cs
- RectangleF.cs
- ColumnCollection.cs
- ServiceDescription.cs
- BindingOperations.cs
- ComboBoxRenderer.cs
- ArraySubsetEnumerator.cs
- UndoEngine.cs
- ProcessInfo.cs
- XmlCountingReader.cs
- SymmetricAlgorithm.cs
- DataColumnMapping.cs
- SqlUserDefinedTypeAttribute.cs
- RuleEngine.cs
- WorkflowTraceTransfer.cs
- CodeTypeDeclaration.cs
- ServicePoint.cs
- MultiSelector.cs
- KeyMatchBuilder.cs
- DiscoveryMessageSequenceGenerator.cs
- ClientConfigPaths.cs
- TimeSpanConverter.cs
- PropertyRecord.cs
- Transform3DGroup.cs
- ProtectedProviderSettings.cs