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
- System.Data_BID.cs
- codemethodreferenceexpression.cs
- GeneralTransform3D.cs
- NativeMethods.cs
- AccessViolationException.cs
- TdsEnums.cs
- AnimationLayer.cs
- EmbeddedMailObjectsCollection.cs
- ComponentResourceManager.cs
- Operand.cs
- RequestCacheEntry.cs
- AppDomainUnloadedException.cs
- ManagedWndProcTracker.cs
- COAUTHIDENTITY.cs
- QilLiteral.cs
- SafeLocalMemHandle.cs
- ThemeInfoAttribute.cs
- AxisAngleRotation3D.cs
- WindowsSecurityTokenAuthenticator.cs
- DataGridParentRows.cs
- NativeMethods.cs
- MaterialGroup.cs
- BamlTreeNode.cs
- RoutedEventArgs.cs
- GridViewRow.cs
- ObjectDataSourceMethodEventArgs.cs
- SelectorItemAutomationPeer.cs
- ErrorFormatterPage.cs
- Misc.cs
- Padding.cs
- EntityType.cs
- FileSystemWatcher.cs
- DesignTimeParseData.cs
- EnumerationRangeValidationUtil.cs
- DataGridColumnCollection.cs
- AuthenticationModuleElementCollection.cs
- DataGridViewComboBoxCell.cs
- ResourceDisplayNameAttribute.cs
- Thread.cs
- InputBuffer.cs
- UdpAnnouncementEndpoint.cs
- RuntimeResourceSet.cs
- MessageSmuggler.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ContentPlaceHolder.cs
- FormsAuthenticationUser.cs
- CreateUserErrorEventArgs.cs
- RelationshipEndMember.cs
- TriggerCollection.cs
- UIElementIsland.cs
- XmlnsCache.cs
- XmlSchemaSimpleContent.cs
- StretchValidation.cs
- EntityAdapter.cs
- ConvertersCollection.cs
- XmlBinaryReader.cs
- WsatServiceCertificate.cs
- ProcessRequestArgs.cs
- InternalConfigSettingsFactory.cs
- RemoteX509AsymmetricSecurityKey.cs
- ReadOnlyNameValueCollection.cs
- Size3DConverter.cs
- ControlOperationBehavior.cs
- TextPointer.cs
- QueueProcessor.cs
- FormViewInsertedEventArgs.cs
- MsmqAppDomainProtocolHandler.cs
- FileUtil.cs
- EntitySqlQueryCacheEntry.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- MatrixIndependentAnimationStorage.cs
- DataRecordInfo.cs
- CompModSwitches.cs
- ChangeInterceptorAttribute.cs
- CharEnumerator.cs
- BinaryCommonClasses.cs
- Message.cs
- SkipQueryOptionExpression.cs
- LinqDataSourceSelectEventArgs.cs
- UnsafeNativeMethods.cs
- Cursor.cs
- StructuredProperty.cs
- StrongNameMembershipCondition.cs
- SqlTriggerContext.cs
- InputProcessorProfiles.cs
- Event.cs
- PrintPreviewControl.cs
- __TransparentProxy.cs
- SafeHandles.cs
- FrameworkPropertyMetadata.cs
- DynamicExpression.cs
- OdbcReferenceCollection.cs
- DataSourceHelper.cs
- FieldBuilder.cs
- CodeAttributeArgument.cs
- RegistryConfigurationProvider.cs
- Splitter.cs
- PeerToPeerException.cs
- SamlAssertion.cs
- WebPartTransformer.cs