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
- ArraySet.cs
- NullReferenceException.cs
- Message.cs
- XmlNamespaceManager.cs
- IntSecurity.cs
- PrefixQName.cs
- BasicDesignerLoader.cs
- FamilyMapCollection.cs
- NetworkInterface.cs
- EFAssociationProvider.cs
- QilInvokeLateBound.cs
- SizeAnimationUsingKeyFrames.cs
- HttpWebRequest.cs
- UdpSocketReceiveManager.cs
- StringExpressionSet.cs
- ImageField.cs
- InputGestureCollection.cs
- SAPIEngineTypes.cs
- DocumentApplicationDocumentViewer.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- XmlImplementation.cs
- AppDomainFactory.cs
- TableRowGroup.cs
- StoreConnection.cs
- CaseInsensitiveComparer.cs
- EncryptedKey.cs
- EventLogTraceListener.cs
- InertiaRotationBehavior.cs
- HitTestWithGeometryDrawingContextWalker.cs
- BaseValidatorDesigner.cs
- GeometryDrawing.cs
- FloaterParaClient.cs
- XmlWellformedWriter.cs
- DateTimeConstantAttribute.cs
- ObjectItemCachedAssemblyLoader.cs
- ComponentResourceKey.cs
- MinMaxParagraphWidth.cs
- SortDescriptionCollection.cs
- WriteableOnDemandStream.cs
- SafeThreadHandle.cs
- DropShadowEffect.cs
- NamedObject.cs
- ObjectListCommandsPage.cs
- WebContext.cs
- objectquery_tresulttype.cs
- HttpStreams.cs
- FileDataSourceCache.cs
- PointAnimationUsingPath.cs
- COM2ExtendedBrowsingHandler.cs
- TextAnchor.cs
- CharacterString.cs
- DecimalFormatter.cs
- ContainerControl.cs
- RoutingTable.cs
- DictionaryContent.cs
- PathData.cs
- ResourceDescriptionAttribute.cs
- WebServiceBindingAttribute.cs
- XmlObjectSerializerReadContextComplexJson.cs
- RichTextBoxConstants.cs
- ToolStripArrowRenderEventArgs.cs
- Rijndael.cs
- ResourceType.cs
- CodeExporter.cs
- XmlSchemaSimpleContentExtension.cs
- ReadOnlyDictionary.cs
- CapabilitiesSection.cs
- Substitution.cs
- WebServicesSection.cs
- OpCodes.cs
- Span.cs
- SimpleType.cs
- HashCodeCombiner.cs
- Splitter.cs
- PackageStore.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- SectionXmlInfo.cs
- ValueOfAction.cs
- XmlAttributeCollection.cs
- ConstructorBuilder.cs
- ComboBoxRenderer.cs
- IsolatedStorage.cs
- Selector.cs
- QuaternionAnimationBase.cs
- EntitySetRetriever.cs
- NavigationEventArgs.cs
- MatchAttribute.cs
- ReflectionUtil.cs
- QuestionEventArgs.cs
- ValueType.cs
- ProgressBar.cs
- ErrorWrapper.cs
- OptimalBreakSession.cs
- TextEditorDragDrop.cs
- MessageDecoder.cs
- FontInfo.cs
- TypeConverter.cs
- LinqDataView.cs
- Constraint.cs
- ParameterModifier.cs