Code:
/ DotNET / DotNET / 8.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
- XmlNotation.cs
- HttpClientCertificate.cs
- GraphicsPathIterator.cs
- InputLanguageCollection.cs
- ValueChangedEventManager.cs
- OrderedEnumerableRowCollection.cs
- Helpers.cs
- UserControlCodeDomTreeGenerator.cs
- WCFBuildProvider.cs
- PageSettings.cs
- DefaultSerializationProviderAttribute.cs
- DragEvent.cs
- UxThemeWrapper.cs
- ProcessThread.cs
- Property.cs
- Sql8ConformanceChecker.cs
- XmlConverter.cs
- ResizeBehavior.cs
- EmissiveMaterial.cs
- ErrorHandler.cs
- ArcSegment.cs
- TextSpan.cs
- OpCopier.cs
- ColorConverter.cs
- SourceElementsCollection.cs
- FilteredAttributeCollection.cs
- SourceItem.cs
- LayoutEditorPart.cs
- Matrix3D.cs
- DataGridColumn.cs
- XmlDocumentType.cs
- prompt.cs
- FtpCachePolicyElement.cs
- HttpCachePolicy.cs
- ExtensionDataObject.cs
- XmlAutoDetectWriter.cs
- MultiView.cs
- ActiveDesignSurfaceEvent.cs
- FunctionDefinition.cs
- InputLanguageProfileNotifySink.cs
- AppDomainAttributes.cs
- Knowncolors.cs
- TypeDescriptionProvider.cs
- CapiHashAlgorithm.cs
- documentation.cs
- FactoryGenerator.cs
- HttpTransportSecurityElement.cs
- SwitchAttribute.cs
- FontDialog.cs
- IndexedString.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DataGridViewLinkColumn.cs
- ColorAnimationUsingKeyFrames.cs
- ErrorFormatter.cs
- SizeLimitedCache.cs
- DataGridSortingEventArgs.cs
- ResetableIterator.cs
- DynamicPhysicalDiscoSearcher.cs
- AssemblyHelper.cs
- ValidationHelper.cs
- MouseEvent.cs
- PointCollection.cs
- DocobjHost.cs
- InvalidOperationException.cs
- TypeSemantics.cs
- ProtocolsConfigurationEntry.cs
- Stacktrace.cs
- JapaneseLunisolarCalendar.cs
- OleDbParameter.cs
- DbMetaDataFactory.cs
- EventBookmark.cs
- RuleSettingsCollection.cs
- UrlMappingCollection.cs
- XmlReaderDelegator.cs
- MergablePropertyAttribute.cs
- ErrorWebPart.cs
- Expressions.cs
- DrawToolTipEventArgs.cs
- DataPagerCommandEventArgs.cs
- ConfigurationElementProperty.cs
- PopupEventArgs.cs
- DoubleAnimationBase.cs
- AsyncStreamReader.cs
- FollowerQueueCreator.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- PolicyValidationException.cs
- StorageComplexTypeMapping.cs
- StringSource.cs
- CompilationRelaxations.cs
- ReflectionServiceProvider.cs
- WebPartConnectionsConfigureVerb.cs
- Point3DCollectionConverter.cs
- FacetChecker.cs
- VirtualizedItemProviderWrapper.cs
- VectorCollection.cs
- ProgressPage.cs
- AuthenticationManager.cs
- DesignerActionVerbItem.cs
- HealthMonitoringSection.cs
- SplitterPanel.cs