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
- Exceptions.cs
- HttpCacheParams.cs
- DBConnection.cs
- XmlSchemaChoice.cs
- OledbConnectionStringbuilder.cs
- GetPageCompletedEventArgs.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- CodeTypeOfExpression.cs
- DataGridRow.cs
- NegotiateStream.cs
- ServiceDeploymentInfo.cs
- ImageButton.cs
- FtpWebResponse.cs
- EventPropertyMap.cs
- Parsers.cs
- PropertyDescriptor.cs
- BuildProviderCollection.cs
- ResourceDictionary.cs
- BuildDependencySet.cs
- ExpressionBuilderContext.cs
- QualifierSet.cs
- WebPartTransformerCollection.cs
- ResourceReferenceExpressionConverter.cs
- NopReturnReader.cs
- Internal.cs
- PerformanceCounterPermissionEntry.cs
- Profiler.cs
- filewebresponse.cs
- RewritingPass.cs
- _NetRes.cs
- _OSSOCK.cs
- NullableDecimalAverageAggregationOperator.cs
- MimeFormImporter.cs
- CookielessData.cs
- WorkflowOperationFault.cs
- SortedSet.cs
- CultureTableRecord.cs
- FixUpCollection.cs
- DataGridViewColumnStateChangedEventArgs.cs
- GenericAuthenticationEventArgs.cs
- SAPIEngineTypes.cs
- ContextMarshalException.cs
- JapaneseCalendar.cs
- BaseTransportHeaders.cs
- ClientCultureInfo.cs
- AssemblyCache.cs
- Point.cs
- ServicePrincipalNameElement.cs
- NonBatchDirectoryCompiler.cs
- DockingAttribute.cs
- SQLByteStorage.cs
- ElementNotAvailableException.cs
- CookieProtection.cs
- SecurityManager.cs
- TableLayoutPanelBehavior.cs
- XmlLanguageConverter.cs
- MatrixAnimationUsingKeyFrames.cs
- HtmlFormAdapter.cs
- SharedHttpsTransportManager.cs
- Point4DValueSerializer.cs
- DrawingAttributes.cs
- Paragraph.cs
- DataGridItemCollection.cs
- FullTextState.cs
- Geometry3D.cs
- CapabilitiesAssignment.cs
- RuleRefElement.cs
- DataSource.cs
- ScriptResourceDefinition.cs
- MobileErrorInfo.cs
- TransportManager.cs
- EntityTypeBase.cs
- TableLayoutSettings.cs
- PeerInvitationResponse.cs
- EncoderParameters.cs
- LocalizedNameDescriptionPair.cs
- PerformanceCounterLib.cs
- ImpersonateTokenRef.cs
- DecimalAnimationBase.cs
- CodeMethodInvokeExpression.cs
- InheritanceAttribute.cs
- XmlTypeAttribute.cs
- PanelContainerDesigner.cs
- RenderContext.cs
- ManagementInstaller.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TableProviderWrapper.cs
- SQLBytesStorage.cs
- arc.cs
- precedingsibling.cs
- AngleUtil.cs
- DbConnectionStringBuilder.cs
- XpsPartBase.cs
- DynamicEntity.cs
- GridViewCommandEventArgs.cs
- ToolStripComboBox.cs
- PriorityBinding.cs
- SqlGatherProducedAliases.cs
- QueryInterceptorAttribute.cs
- ReachSerializer.cs