Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / Pair.cs / 1305376 / 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
- OutputCacheProviderCollection.cs
- DataGridViewSortCompareEventArgs.cs
- BooleanProjectedSlot.cs
- Int16Converter.cs
- EntitySqlQueryState.cs
- CodeMemberField.cs
- MultitargetUtil.cs
- HealthMonitoringSection.cs
- ManagementQuery.cs
- LZCodec.cs
- PropertyRef.cs
- EncryptedData.cs
- TabControlAutomationPeer.cs
- AssemblyNameProxy.cs
- CqlLexer.cs
- RotateTransform3D.cs
- FramingFormat.cs
- DataGridBoolColumn.cs
- Point3DCollectionValueSerializer.cs
- DataGridViewRow.cs
- FloatSumAggregationOperator.cs
- ControlEvent.cs
- PropertyPushdownHelper.cs
- DeclaredTypeValidatorAttribute.cs
- TimerElapsedEvenArgs.cs
- ArrangedElementCollection.cs
- WebPartConnectionsConnectVerb.cs
- Rect3DValueSerializer.cs
- PopOutPanel.cs
- GridItemPatternIdentifiers.cs
- _NetworkingPerfCounters.cs
- FieldDescriptor.cs
- BasicHttpMessageCredentialType.cs
- BindingManagerDataErrorEventArgs.cs
- PinnedBufferMemoryStream.cs
- CheckBoxAutomationPeer.cs
- SignatureGenerator.cs
- GridPattern.cs
- ModuleBuilderData.cs
- WizardPanelChangingEventArgs.cs
- Evidence.cs
- FormsAuthenticationUserCollection.cs
- Activator.cs
- BitmapFrameEncode.cs
- XmlHierarchicalDataSourceView.cs
- TargetParameterCountException.cs
- BufferedGraphicsManager.cs
- ContainerControl.cs
- MetadataPropertyCollection.cs
- InvalidPropValue.cs
- StructuralCache.cs
- ScriptManager.cs
- ProcessModelSection.cs
- TextAdaptor.cs
- JsonStringDataContract.cs
- MetadataReference.cs
- SinglePageViewer.cs
- KeyInterop.cs
- WebPartMinimizeVerb.cs
- MasterPageParser.cs
- ContainerFilterService.cs
- HwndHost.cs
- DataErrorValidationRule.cs
- ItemList.cs
- SchemaImporterExtensionElementCollection.cs
- PostBackTrigger.cs
- SslStreamSecurityUpgradeProvider.cs
- UInt64Converter.cs
- RuntimeUtils.cs
- DbConnectionPoolGroupProviderInfo.cs
- TextBlock.cs
- ApplicationInfo.cs
- VisualStates.cs
- TextEditorMouse.cs
- CultureSpecificCharacterBufferRange.cs
- Matrix.cs
- ReadContentAsBinaryHelper.cs
- EditModeSwitchButton.cs
- Tool.cs
- TextDecorationUnitValidation.cs
- ProcessThreadCollection.cs
- ExtendedPropertyDescriptor.cs
- EdmValidator.cs
- CounterSetInstanceCounterDataSet.cs
- PeerInputChannelListener.cs
- BaseResourcesBuildProvider.cs
- EmptyEnumerator.cs
- ReadOnlyDataSourceView.cs
- controlskin.cs
- ScrollViewerAutomationPeer.cs
- Unit.cs
- CommandManager.cs
- StringFunctions.cs
- BitmapEffectGeneralTransform.cs
- OdbcConnectionHandle.cs
- WinEventWrap.cs
- RemotingClientProxy.cs
- DataGridViewComboBoxCell.cs
- DrawingAttributesDefaultValueFactory.cs
- KeyFrames.cs