Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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
- RequestCacheValidator.cs
- DESCryptoServiceProvider.cs
- FormViewInsertedEventArgs.cs
- FilteredXmlReader.cs
- PointLightBase.cs
- ListViewInsertedEventArgs.cs
- PreviewPageInfo.cs
- ObjectDataProvider.cs
- Translator.cs
- ValueChangedEventManager.cs
- DeriveBytes.cs
- UdpDiscoveryEndpoint.cs
- InstanceLockLostException.cs
- DefaultShape.cs
- DateTimeParse.cs
- ThemeDirectoryCompiler.cs
- HttpDigestClientElement.cs
- LinkLabelLinkClickedEvent.cs
- CodeGroup.cs
- SemanticTag.cs
- PropertyNames.cs
- TrackingServices.cs
- X509SecurityTokenParameters.cs
- RuleConditionDialog.Designer.cs
- KeyPressEvent.cs
- CrossContextChannel.cs
- PropertyPanel.cs
- EntityDescriptor.cs
- FormatException.cs
- PrinterUnitConvert.cs
- ThaiBuddhistCalendar.cs
- Encoding.cs
- AssociationProvider.cs
- TemplatedWizardStep.cs
- SqlCacheDependencySection.cs
- ActivityExecutor.cs
- EditingCoordinator.cs
- SourceFileBuildProvider.cs
- XsltQilFactory.cs
- TextRunProperties.cs
- WorkflowOperationErrorHandler.cs
- VariantWrapper.cs
- HttpRuntimeSection.cs
- BroadcastEventHelper.cs
- OdbcErrorCollection.cs
- HttpResponseHeader.cs
- ExpressionBuilder.cs
- XmlBinaryWriter.cs
- BitmapEffectGroup.cs
- ByteConverter.cs
- IdentifierService.cs
- XmlSchemaObjectCollection.cs
- ObjectListFieldsPage.cs
- FixedSOMLineCollection.cs
- InstallerTypeAttribute.cs
- Section.cs
- Point3D.cs
- BaseTemplatedMobileComponentEditor.cs
- updateconfighost.cs
- MergeLocalizationDirectives.cs
- ObjectListComponentEditor.cs
- PassportPrincipal.cs
- DockProviderWrapper.cs
- RequestTimeoutManager.cs
- XmlAnyElementAttributes.cs
- Material.cs
- ZipIOCentralDirectoryFileHeader.cs
- TextStore.cs
- HtmlProps.cs
- DataServiceHostFactory.cs
- DesignerActionList.cs
- DataTableNewRowEvent.cs
- LinqDataSourceSelectEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- EditingCommands.cs
- LinearKeyFrames.cs
- ConfigurationValidatorAttribute.cs
- StringUtil.cs
- SqlDataSourceStatusEventArgs.cs
- RadialGradientBrush.cs
- FlowLayoutPanelDesigner.cs
- CreateWorkflowOwnerCommand.cs
- HMACSHA384.cs
- CodeExporter.cs
- Shared.cs
- wmiprovider.cs
- DesignerSelectionListAdapter.cs
- HostingEnvironmentException.cs
- SessionStateModule.cs
- ObjectDataSourceChooseTypePanel.cs
- XmlQueryType.cs
- SapiRecognizer.cs
- Timeline.cs
- PropertyGeneratedEventArgs.cs
- wgx_commands.cs
- Comparer.cs
- BaseCollection.cs
- ConfigurationSettings.cs
- FaultBookmark.cs
- HostedImpersonationContext.cs