Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TripleDESCryptoServiceProvider.cs
- ArrayList.cs
- XmlNamespaceDeclarationsAttribute.cs
- List.cs
- RequestUriProcessor.cs
- EntityProxyFactory.cs
- MarshalDirectiveException.cs
- KeyedHashAlgorithm.cs
- SystemFonts.cs
- BuildManager.cs
- PagesChangedEventArgs.cs
- EncoderReplacementFallback.cs
- WebEventCodes.cs
- ThreadInterruptedException.cs
- CodeAccessPermission.cs
- XPathArrayIterator.cs
- PersonalizationStateInfo.cs
- Compress.cs
- DeploymentSection.cs
- InputLanguageSource.cs
- BuildProviderInstallComponent.cs
- XmlCodeExporter.cs
- StreamUpdate.cs
- SessionStateContainer.cs
- EventRouteFactory.cs
- IndicFontClient.cs
- XmlDataImplementation.cs
- DependsOnAttribute.cs
- ILGenerator.cs
- WebServiceClientProxyGenerator.cs
- AnnotationStore.cs
- UpdateEventArgs.cs
- RowVisual.cs
- ReaderWriterLock.cs
- PerformanceCounterLib.cs
- DataGridTablesFactory.cs
- ExceptionNotification.cs
- TreeNodeStyleCollection.cs
- PcmConverter.cs
- SqlDataSourceConnectionPanel.cs
- FileLevelControlBuilderAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- CreateUserWizardStep.cs
- View.cs
- TextFormatterImp.cs
- WebPartVerb.cs
- BindingValueChangedEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- ManagementPath.cs
- Cell.cs
- SQLDateTime.cs
- SqlCommand.cs
- CatalogPartCollection.cs
- DrawingContextWalker.cs
- XmlSerializationGeneratedCode.cs
- SchemaNames.cs
- BlockUIContainer.cs
- GPStream.cs
- MenuItemStyle.cs
- controlskin.cs
- BuildProvidersCompiler.cs
- LogRestartAreaEnumerator.cs
- TableHeaderCell.cs
- MultiTrigger.cs
- SqlClientMetaDataCollectionNames.cs
- SourceChangedEventArgs.cs
- ControlOperationBehavior.cs
- MappingMetadataHelper.cs
- BamlReader.cs
- ZipFileInfo.cs
- KeyValueSerializer.cs
- TextElementCollectionHelper.cs
- StringBuilder.cs
- DropShadowBitmapEffect.cs
- ReaderContextStackData.cs
- ToolStripDropTargetManager.cs
- ClassicBorderDecorator.cs
- EdmToObjectNamespaceMap.cs
- RC2CryptoServiceProvider.cs
- InertiaTranslationBehavior.cs
- RoutedEventConverter.cs
- KeyboardEventArgs.cs
- ToRequest.cs
- _OSSOCK.cs
- WindowsRebar.cs
- ToolStripDropTargetManager.cs
- CmsUtils.cs
- AppDomainInstanceProvider.cs
- TaiwanLunisolarCalendar.cs
- TranslateTransform3D.cs
- WorkflowMessageEventArgs.cs
- PenCursorManager.cs
- Funcletizer.cs
- AutomationTextAttribute.cs
- SqlError.cs
- PersistNameAttribute.cs
- DBConnection.cs
- MarshalByValueComponent.cs
- safesecurityhelperavalon.cs
- XmlArrayAttribute.cs