Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / ChameleonKey.cs / 1 / ChameleonKey.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System.Collections; using System.ComponentModel; using System.Xml.Serialization; // Case insensitive file name key for use in a hashtable. internal class ChameleonKey { internal string targetNS; internal Uri chameleonLocation; int hashCode; public ChameleonKey(string ns, Uri location) { targetNS = ns; chameleonLocation = location; } public override int GetHashCode() { if (hashCode == 0) { hashCode = targetNS.GetHashCode() + chameleonLocation.GetHashCode(); } return hashCode; } public override bool Equals(object obj) { if (Ref.ReferenceEquals(this,obj)) { return true; } ChameleonKey cKey = obj as ChameleonKey; if (cKey != null) { return this.targetNS.Equals(cKey.targetNS) && this.chameleonLocation.Equals(cKey.chameleonLocation); } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RootBrowserWindow.cs
- InplaceBitmapMetadataWriter.cs
- InvalidContentTypeException.cs
- DateBoldEvent.cs
- TextRangeEdit.cs
- WorkflowRuntimeService.cs
- updatecommandorderer.cs
- BaseValidator.cs
- SQLDecimal.cs
- ExpressionVisitorHelpers.cs
- WindowsTreeView.cs
- JoinElimination.cs
- MenuAutomationPeer.cs
- AvTraceDetails.cs
- TextFragmentEngine.cs
- PropertyMapper.cs
- XmlSequenceWriter.cs
- MultiPageTextView.cs
- ToolStripDropDownClosingEventArgs.cs
- SkewTransform.cs
- EndPoint.cs
- FrameworkPropertyMetadata.cs
- MachineKeyValidationConverter.cs
- DatagridviewDisplayedBandsData.cs
- AutomationPatternInfo.cs
- CodeTypeOfExpression.cs
- ADMembershipUser.cs
- ObfuscateAssemblyAttribute.cs
- PackageDigitalSignature.cs
- HandlerWithFactory.cs
- StandardToolWindows.cs
- Condition.cs
- TextDecoration.cs
- GridSplitterAutomationPeer.cs
- CapabilitiesPattern.cs
- VirtualDirectoryMapping.cs
- ExceptionRoutedEventArgs.cs
- ResourcesBuildProvider.cs
- updatecommandorderer.cs
- DataConnectionHelper.cs
- Receive.cs
- mediaeventargs.cs
- DataSourceView.cs
- CheckPair.cs
- RichTextBoxContextMenu.cs
- IsolationInterop.cs
- _ContextAwareResult.cs
- PreApplicationStartMethodAttribute.cs
- wgx_sdk_version.cs
- SymLanguageType.cs
- SessionStateContainer.cs
- SmtpSection.cs
- WebPartManager.cs
- SiteMapNode.cs
- FlowDocumentScrollViewer.cs
- InvokeHandlers.cs
- RegistrySecurity.cs
- Int32Collection.cs
- DragSelectionMessageFilter.cs
- BasicExpandProvider.cs
- InternalControlCollection.cs
- VerticalConnector.xaml.cs
- ToolStripContainer.cs
- ListChangedEventArgs.cs
- GeneratedCodeAttribute.cs
- WorkerRequest.cs
- PaginationProgressEventArgs.cs
- SkinBuilder.cs
- PlainXmlSerializer.cs
- EncoderExceptionFallback.cs
- BamlBinaryWriter.cs
- DataBindingExpressionBuilder.cs
- Repeater.cs
- GeneratedContractType.cs
- SHA384CryptoServiceProvider.cs
- File.cs
- XmlAttributeAttribute.cs
- ValidationErrorCollection.cs
- ColumnCollection.cs
- GenericAuthenticationEventArgs.cs
- MethodSignatureGenerator.cs
- EntityDataSourceStatementEditorForm.cs
- ExpressionLink.cs
- CoreSwitches.cs
- ChannelAcceptor.cs
- RegexRunnerFactory.cs
- WindowsEditBoxRange.cs
- TextTrailingWordEllipsis.cs
- XmlValidatingReader.cs
- StrokeIntersection.cs
- MaxMessageSizeStream.cs
- Msmq4PoisonHandler.cs
- ProviderException.cs
- SiteMapProvider.cs
- InitializingNewItemEventArgs.cs
- ParameterCollection.cs
- Separator.cs
- WebPermission.cs
- Timer.cs
- MultiAsyncResult.cs