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
- HTMLTextWriter.cs
- LinkedList.cs
- HitTestParameters.cs
- SapiRecognizer.cs
- FindCriteriaElement.cs
- CompensatableTransactionScopeActivityDesigner.cs
- NamespaceEmitter.cs
- FrameworkElement.cs
- UserControlCodeDomTreeGenerator.cs
- Debug.cs
- TimeSpanStorage.cs
- ManifestSignedXml.cs
- ReadContentAsBinaryHelper.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ActivityInstanceReference.cs
- SettingsPropertyIsReadOnlyException.cs
- ETagAttribute.cs
- ReadOnlyCollectionBase.cs
- LoginDesigner.cs
- SocketInformation.cs
- Size.cs
- MultipleCopiesCollection.cs
- HyperlinkAutomationPeer.cs
- PlainXmlDeserializer.cs
- BitmapMetadataEnumerator.cs
- TextFormatter.cs
- dataprotectionpermission.cs
- LexicalChunk.cs
- RenderData.cs
- ExpandCollapsePattern.cs
- ToolBarTray.cs
- ListSourceHelper.cs
- SHA512.cs
- AlphabeticalEnumConverter.cs
- ButtonField.cs
- TextPenaltyModule.cs
- IdentityValidationException.cs
- QueryServiceConfigHandle.cs
- QuaternionRotation3D.cs
- MarkupCompiler.cs
- View.cs
- FormViewModeEventArgs.cs
- WorkflowInstanceContextProvider.cs
- VisualProxy.cs
- AutomationPropertyInfo.cs
- TextEditorThreadLocalStore.cs
- XomlCompilerResults.cs
- SimpleRecyclingCache.cs
- AutoResizedEvent.cs
- SqlConnectionFactory.cs
- SrgsDocumentParser.cs
- CommandDevice.cs
- KeyBinding.cs
- QilChoice.cs
- HttpProfileBase.cs
- ScriptReferenceEventArgs.cs
- SchemaTypeEmitter.cs
- DocumentSequence.cs
- ScriptResourceInfo.cs
- BindToObject.cs
- DropTarget.cs
- MasterPageBuildProvider.cs
- DataControlCommands.cs
- NameTable.cs
- AssemblyCache.cs
- WebRequest.cs
- DataServices.cs
- UserControlCodeDomTreeGenerator.cs
- DialogBaseForm.cs
- WebContext.cs
- ActiveXMessageFormatter.cs
- FixedPageProcessor.cs
- AdornerPresentationContext.cs
- SafeCryptContextHandle.cs
- XPathParser.cs
- StylusSystemGestureEventArgs.cs
- SourceFileBuildProvider.cs
- IIS7UserPrincipal.cs
- Animatable.cs
- CachingHintValidation.cs
- EventMappingSettings.cs
- AddIn.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- User.cs
- ApplicationId.cs
- FieldTemplateUserControl.cs
- FieldAccessException.cs
- SQLResource.cs
- MenuStrip.cs
- LogReserveAndAppendState.cs
- ConstraintEnumerator.cs
- FormsAuthenticationConfiguration.cs
- AuthenticationServiceManager.cs
- ReferenceAssemblyAttribute.cs
- Vector3DConverter.cs
- DynamicRenderer.cs
- RegexTypeEditor.cs
- ToolStripDropDownItem.cs
- TagPrefixAttribute.cs
- TypeDescriptorContext.cs