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
- XmlLanguage.cs
- RightsManagementEncryptionTransform.cs
- ComponentCommands.cs
- EventLevel.cs
- UTF8Encoding.cs
- ViewGenerator.cs
- MachineKeySection.cs
- precedingsibling.cs
- IdleTimeoutMonitor.cs
- _BufferOffsetSize.cs
- UIntPtr.cs
- XmlBinaryReader.cs
- SqlPersonalizationProvider.cs
- IriParsingElement.cs
- DataGridBoolColumn.cs
- Scheduler.cs
- Constants.cs
- GeneralTransform3DCollection.cs
- UnsafeNativeMethods.cs
- DataErrorValidationRule.cs
- StringFunctions.cs
- CounterNameConverter.cs
- WebPartsPersonalizationAuthorization.cs
- ConstraintStruct.cs
- Style.cs
- _LocalDataStoreMgr.cs
- CommonDialog.cs
- Int32CollectionConverter.cs
- selecteditemcollection.cs
- TrackBar.cs
- SQLGuid.cs
- UnauthorizedWebPart.cs
- SHA1Cng.cs
- EventTrigger.cs
- StylusPointPropertyInfo.cs
- Attribute.cs
- PartitionedDataSource.cs
- XmlDownloadManager.cs
- StringKeyFrameCollection.cs
- XmlDigitalSignatureProcessor.cs
- StringValueSerializer.cs
- RowBinding.cs
- TraceFilter.cs
- OneOfConst.cs
- ComplexTypeEmitter.cs
- PasswordRecovery.cs
- ProcessModuleCollection.cs
- ContextProperty.cs
- CriticalFileToken.cs
- DependencyPropertyValueSerializer.cs
- WindowsFormsSectionHandler.cs
- StructuredType.cs
- RectangleConverter.cs
- DurationConverter.cs
- TextSerializer.cs
- AppliedDeviceFiltersDialog.cs
- ListCollectionView.cs
- TextRangeEditLists.cs
- IdnElement.cs
- Pair.cs
- DurableErrorHandler.cs
- RectAnimationUsingKeyFrames.cs
- ListView.cs
- TransformValueSerializer.cs
- OracleFactory.cs
- RealProxy.cs
- SqlFileStream.cs
- SplineKeyFrames.cs
- CustomErrorCollection.cs
- ZipIOLocalFileHeader.cs
- KeysConverter.cs
- ListBindingHelper.cs
- Recipient.cs
- XmlWriter.cs
- AsyncDataRequest.cs
- ImpersonationContext.cs
- GenericTypeParameterConverter.cs
- Repeater.cs
- SchemaComplexType.cs
- SafeSystemMetrics.cs
- SafeUserTokenHandle.cs
- AuthorizationSection.cs
- GridErrorDlg.cs
- MsmqMessageSerializationFormat.cs
- AmbiguousMatchException.cs
- NullableIntSumAggregationOperator.cs
- SpeechSynthesizer.cs
- ProcessThreadCollection.cs
- CodeDomExtensionMethods.cs
- AsnEncodedData.cs
- AlternationConverter.cs
- RepeatInfo.cs
- PlatformCulture.cs
- HScrollBar.cs
- DefaultAutoFieldGenerator.cs
- SmtpFailedRecipientsException.cs
- LockedAssemblyCache.cs
- SourceFilter.cs
- _PooledStream.cs
- CacheChildrenQuery.cs