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
- ObjectDataSourceMethodEditor.cs
- XhtmlBasicListAdapter.cs
- RoutedCommand.cs
- ListViewTableCell.cs
- Random.cs
- CollectionViewProxy.cs
- NativeMethods.cs
- NamedPermissionSet.cs
- FilePrompt.cs
- ButtonBase.cs
- TableRow.cs
- Property.cs
- AssemblyNameProxy.cs
- ClusterRegistryConfigurationProvider.cs
- SessionIDManager.cs
- ListViewDeleteEventArgs.cs
- PointHitTestResult.cs
- EventsTab.cs
- ProxyManager.cs
- ColorTypeConverter.cs
- Process.cs
- BinaryFormatter.cs
- Function.cs
- EdmScalarPropertyAttribute.cs
- PathGradientBrush.cs
- ObjectReaderCompiler.cs
- ExpressionBinding.cs
- VisualStates.cs
- MemberAccessException.cs
- XsltConvert.cs
- FileReservationCollection.cs
- M3DUtil.cs
- RoleServiceManager.cs
- CompositeDuplexElement.cs
- Label.cs
- FlatButtonAppearance.cs
- PipeSecurity.cs
- WindowsListView.cs
- ToolStripStatusLabel.cs
- SyndicationDeserializer.cs
- TopClause.cs
- AssociationSet.cs
- ProcessThread.cs
- ServicePointManager.cs
- TextSelectionHighlightLayer.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- TemplateBindingExtension.cs
- WSFederationHttpBindingElement.cs
- HelpProvider.cs
- ReadOnlyPropertyMetadata.cs
- DocumentGridPage.cs
- RelationshipEnd.cs
- ListParaClient.cs
- PageFunction.cs
- SoapObjectWriter.cs
- ShimAsPublicXamlType.cs
- BaseUriHelper.cs
- RevocationPoint.cs
- UrlMapping.cs
- ConfigXmlSignificantWhitespace.cs
- Size.cs
- CodeLinePragma.cs
- FixedSOMImage.cs
- Italic.cs
- PersistenceTypeAttribute.cs
- FormsAuthenticationUser.cs
- HttpConfigurationSystem.cs
- ISAPIRuntime.cs
- CompensableActivity.cs
- OdbcConnectionString.cs
- AllMembershipCondition.cs
- Manipulation.cs
- MenuEventArgs.cs
- KeyBinding.cs
- ToolboxComponentsCreatedEventArgs.cs
- XmlILModule.cs
- SqlGenericUtil.cs
- IApplicationTrustManager.cs
- MethodCallExpression.cs
- _OSSOCK.cs
- RadialGradientBrush.cs
- HttpHandlerActionCollection.cs
- EncoderParameter.cs
- PixelFormats.cs
- InputReport.cs
- GridProviderWrapper.cs
- SoapIncludeAttribute.cs
- _NestedSingleAsyncResult.cs
- DesignerCategoryAttribute.cs
- SqlDataSourceCache.cs
- MemberInfoSerializationHolder.cs
- FrameworkContentElementAutomationPeer.cs
- DataProtection.cs
- DecoderNLS.cs
- CodeBlockBuilder.cs
- CustomCredentialPolicy.cs
- TextServicesCompartment.cs
- SchemaNamespaceManager.cs
- AssemblyBuilder.cs
- MulticastNotSupportedException.cs