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
- DrawItemEvent.cs
- CellNormalizer.cs
- ZipIOBlockManager.cs
- Button.cs
- DBPropSet.cs
- XmlNullResolver.cs
- ContentType.cs
- StrongTypingException.cs
- MultiTargetingUtil.cs
- RuntimeIdentifierPropertyAttribute.cs
- Decorator.cs
- SymbolEqualComparer.cs
- XmlElementCollection.cs
- SecureUICommand.cs
- SQLCharsStorage.cs
- CodeComment.cs
- ComPlusThreadInitializer.cs
- PathTooLongException.cs
- _NativeSSPI.cs
- SessionIDManager.cs
- TrustManager.cs
- RelationshipFixer.cs
- PictureBox.cs
- TimeSpanValidatorAttribute.cs
- TextParagraphCache.cs
- HtmlInputHidden.cs
- FontFamilyValueSerializer.cs
- XmlEventCache.cs
- DataGridViewCellCancelEventArgs.cs
- ObjectDataSourceMethodEditor.cs
- InstanceKeyCollisionException.cs
- CodeGenerator.cs
- StylusDevice.cs
- TableLayoutCellPaintEventArgs.cs
- DeleteWorkflowOwnerCommand.cs
- StreamInfo.cs
- CodeTypeReferenceCollection.cs
- XslVisitor.cs
- XmlSignatureProperties.cs
- BitmapImage.cs
- SimpleRecyclingCache.cs
- NetCodeGroup.cs
- PropertyDescriptorCollection.cs
- LinearGradientBrush.cs
- ToolStripOverflowButton.cs
- DecoderReplacementFallback.cs
- ServiceHostingEnvironment.cs
- ConfigurationValues.cs
- BuildProviderUtils.cs
- AutomationPropertyInfo.cs
- UIElementAutomationPeer.cs
- UInt16Storage.cs
- ScriptControlDescriptor.cs
- PolicyManager.cs
- assertwrapper.cs
- WebConfigurationHostFileChange.cs
- ExplicitDiscriminatorMap.cs
- cryptoapiTransform.cs
- AssemblyBuilder.cs
- FilterRepeater.cs
- StringFormat.cs
- HttpCookie.cs
- GridItemPattern.cs
- TextRunTypographyProperties.cs
- XmlComplianceUtil.cs
- SerializableAttribute.cs
- Parameter.cs
- UrlMappingsSection.cs
- MimeWriter.cs
- SyndicationSerializer.cs
- Viewport3DAutomationPeer.cs
- NavigationPropertySingletonExpression.cs
- RightsManagementSuppressedStream.cs
- SafeHandles.cs
- ComplexPropertyEntry.cs
- CalendarDateRangeChangingEventArgs.cs
- WebMessageFormatHelper.cs
- TargetParameterCountException.cs
- String.cs
- StronglyTypedResourceBuilder.cs
- formatstringdialog.cs
- ReadOnlyAttribute.cs
- HTTPAPI_VERSION.cs
- GridItemPattern.cs
- XPathExpr.cs
- TimestampInformation.cs
- SqlDataSourceStatusEventArgs.cs
- SoapAttributes.cs
- JavaScriptString.cs
- RuntimeEnvironment.cs
- EnumerableRowCollection.cs
- CompressEmulationStream.cs
- InvokeWebServiceDesigner.cs
- SR.cs
- CodeDomSerializer.cs
- ScrollEvent.cs
- SubclassTypeValidatorAttribute.cs
- Ipv6Element.cs
- UICuesEvent.cs
- HttpInputStream.cs