Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- GenericWebPart.cs
- ColumnHeader.cs
- CookieProtection.cs
- CollectionViewProxy.cs
- ClientConfigurationHost.cs
- RadioButtonFlatAdapter.cs
- CreateUserErrorEventArgs.cs
- TargetParameterCountException.cs
- OlePropertyStructs.cs
- OpacityConverter.cs
- filewebresponse.cs
- DeferredElementTreeState.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- ItemCollection.cs
- IntersectQueryOperator.cs
- EventProviderWriter.cs
- DropDownButton.cs
- CompressedStack.cs
- TreeNodeCollection.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- DictionaryTraceRecord.cs
- Stack.cs
- Registry.cs
- OciEnlistContext.cs
- EnumMember.cs
- GridErrorDlg.cs
- VisualStyleElement.cs
- PartialArray.cs
- DefaultExpressionVisitor.cs
- ArglessEventHandlerProxy.cs
- BaseProcessor.cs
- CompareValidator.cs
- DataServiceResponse.cs
- MouseEventArgs.cs
- WebBrowserContainer.cs
- TextSimpleMarkerProperties.cs
- Renderer.cs
- XmlWrappingReader.cs
- ContextActivityUtils.cs
- CreateUserWizardDesigner.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SqlStatistics.cs
- FormatterConverter.cs
- AccessDataSource.cs
- Normalization.cs
- DataTablePropertyDescriptor.cs
- TableCellCollection.cs
- DPTypeDescriptorContext.cs
- NumberSubstitution.cs
- HostVisual.cs
- ImportCatalogPart.cs
- QilInvoke.cs
- UDPClient.cs
- CrossContextChannel.cs
- OperationCanceledException.cs
- ListViewInsertionMark.cs
- MessageDesigner.cs
- RealizedColumnsBlock.cs
- Adorner.cs
- UInt32.cs
- IgnoreFileBuildProvider.cs
- CalendarBlackoutDatesCollection.cs
- OletxEnlistment.cs
- CodeConditionStatement.cs
- UnsafeCollabNativeMethods.cs
- XmlNode.cs
- TreeViewItemAutomationPeer.cs
- EventToken.cs
- NativeMethods.cs
- StylusPointPropertyId.cs
- UTF32Encoding.cs
- SelectingProviderEventArgs.cs
- InputLangChangeRequestEvent.cs
- WorkflowInstance.cs
- UnionExpr.cs
- ProtocolsConfigurationHandler.cs
- KernelTypeValidation.cs
- DesignerTransaction.cs
- WasHostedComPlusFactory.cs
- DescendentsWalkerBase.cs
- CharacterMetricsDictionary.cs
- BinaryObjectWriter.cs
- CodePageUtils.cs
- SoapAttributeAttribute.cs
- StorageSetMapping.cs
- PassportAuthenticationEventArgs.cs
- Lasso.cs
- _NegoStream.cs
- ClickablePoint.cs
- TypedReference.cs
- CodeObjectCreateExpression.cs
- RequestCachePolicy.cs
- ConfigurationPropertyCollection.cs
- SweepDirectionValidation.cs
- XmlSchemaObjectTable.cs
- SchemaAttDef.cs
- ObjectContextServiceProvider.cs
- Table.cs
- StateMachineHistory.cs
- WebDescriptionAttribute.cs