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
- EntityDataSourceState.cs
- LessThan.cs
- DataGridViewCellLinkedList.cs
- RegexCaptureCollection.cs
- SoapIgnoreAttribute.cs
- namescope.cs
- ServiceEndpointAssociationProvider.cs
- SqlPersonalizationProvider.cs
- AdRotator.cs
- SystemFonts.cs
- FocusWithinProperty.cs
- EntityParameter.cs
- SerialPort.cs
- CalendarDataBindingHandler.cs
- TransferRequestHandler.cs
- FollowerQueueCreator.cs
- ObjectReaderCompiler.cs
- CalendarDateRangeChangingEventArgs.cs
- IndicShape.cs
- PriorityChain.cs
- PerformanceCounterManager.cs
- HwndKeyboardInputProvider.cs
- EntityContainerEntitySet.cs
- JpegBitmapEncoder.cs
- OneOfElement.cs
- ImportDesigner.xaml.cs
- OutputWindow.cs
- TabletDevice.cs
- BaseTypeViewSchema.cs
- Vector3D.cs
- SQLSingle.cs
- CatalogZoneBase.cs
- ColumnBinding.cs
- IODescriptionAttribute.cs
- DetailsViewInsertedEventArgs.cs
- SqlRewriteScalarSubqueries.cs
- TextAnchor.cs
- CompoundFileIOPermission.cs
- CookielessHelper.cs
- Sequence.cs
- Typography.cs
- TextBoxBase.cs
- AudioFormatConverter.cs
- OdbcConnectionHandle.cs
- TextOptionsInternal.cs
- HtmlMeta.cs
- ResponseStream.cs
- TreeNodeBindingDepthConverter.cs
- SchemaEntity.cs
- LongSumAggregationOperator.cs
- DataGridViewCellStateChangedEventArgs.cs
- Executor.cs
- MetadataSerializer.cs
- InstanceDataCollection.cs
- StoreContentChangedEventArgs.cs
- FunctionImportMapping.cs
- UnsafeNativeMethods.cs
- SecureEnvironment.cs
- AsyncOperationContext.cs
- Int64Converter.cs
- OracleBoolean.cs
- ShaderEffect.cs
- ActivationArguments.cs
- PropertyOverridesTypeEditor.cs
- StylusButtonCollection.cs
- TrustManagerPromptUI.cs
- AutomationPatternInfo.cs
- AspNetSynchronizationContext.cs
- XmlSchemaProviderAttribute.cs
- ProvidersHelper.cs
- Input.cs
- DateBoldEvent.cs
- ScriptRef.cs
- Char.cs
- DataKeyCollection.cs
- TraceHandlerErrorFormatter.cs
- Help.cs
- CompiledXpathExpr.cs
- DataGridColumnReorderingEventArgs.cs
- CheckBoxFlatAdapter.cs
- AmbiguousMatchException.cs
- XmlAnyElementAttributes.cs
- RuntimeIdentifierPropertyAttribute.cs
- AssemblyUtil.cs
- WebSysDescriptionAttribute.cs
- InvokeMemberBinder.cs
- GridViewUpdatedEventArgs.cs
- ConfigurationManagerHelper.cs
- TabPage.cs
- PropertyChangedEventManager.cs
- CodeDirectiveCollection.cs
- FontStyleConverter.cs
- DesignerVerb.cs
- WizardSideBarListControlItemEventArgs.cs
- CommandHelper.cs
- NumberFormatter.cs
- LineServices.cs
- TypeDelegator.cs
- DelegateSerializationHolder.cs
- WorkflowViewStateService.cs