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
- BindingExpressionUncommonField.cs
- SchemaElementDecl.cs
- PointConverter.cs
- RemoteWebConfigurationHostServer.cs
- BuildManager.cs
- SqlRowUpdatedEvent.cs
- HyperLinkDesigner.cs
- CodeTypeReferenceExpression.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- Image.cs
- StructuralComparisons.cs
- SimpleTypeResolver.cs
- SmiRecordBuffer.cs
- OleDbErrorCollection.cs
- _LocalDataStoreMgr.cs
- DBCommandBuilder.cs
- ProfilePropertyMetadata.cs
- CapabilitiesAssignment.cs
- Soap11ServerProtocol.cs
- MobileTextWriter.cs
- Regex.cs
- NumberFormatInfo.cs
- TypefaceMetricsCache.cs
- CharKeyFrameCollection.cs
- TokenBasedSet.cs
- QilInvoke.cs
- PipeStream.cs
- RawStylusInputCustomDataList.cs
- EngineSiteSapi.cs
- Attributes.cs
- RedirectionProxy.cs
- DataServiceRequestException.cs
- DateTime.cs
- PropagatorResult.cs
- TypeInfo.cs
- UserControl.cs
- PropertyStore.cs
- DataGridViewTopRowAccessibleObject.cs
- CheckBox.cs
- PersonalizationEntry.cs
- BinaryMethodMessage.cs
- COM2Enum.cs
- ISAPIApplicationHost.cs
- NativeCompoundFileAPIs.cs
- EdmEntityTypeAttribute.cs
- Compilation.cs
- EdgeModeValidation.cs
- BufferAllocator.cs
- MappedMetaModel.cs
- Input.cs
- Int32AnimationBase.cs
- ProfileSettings.cs
- WebPartConnectVerb.cs
- EventLogRecord.cs
- UserPreferenceChangingEventArgs.cs
- NumericExpr.cs
- StreamAsIStream.cs
- DataControlFieldCell.cs
- ObjectView.cs
- TrustManagerPromptUI.cs
- ColorPalette.cs
- PlanCompiler.cs
- SqlDataAdapter.cs
- DelegateTypeInfo.cs
- GridEntryCollection.cs
- querybuilder.cs
- OdbcConnectionStringbuilder.cs
- sqlstateclientmanager.cs
- TreeSet.cs
- PropertyTabAttribute.cs
- DropShadowEffect.cs
- Selector.cs
- HotCommands.cs
- DependentTransaction.cs
- KeyConverter.cs
- PageStatePersister.cs
- ChannelCredentials.cs
- GlobalAllocSafeHandle.cs
- ValidationEventArgs.cs
- Library.cs
- TimerEventSubscriptionCollection.cs
- AssemblyBuilder.cs
- PeerService.cs
- SessionStateItemCollection.cs
- EntityStoreSchemaGenerator.cs
- HttpModuleAction.cs
- LambdaCompiler.Lambda.cs
- ToolstripProfessionalRenderer.cs
- PageThemeBuildProvider.cs
- LightweightCodeGenerator.cs
- AdapterUtil.cs
- XmlSchemaProviderAttribute.cs
- GrammarBuilderRuleRef.cs
- RepeaterDesigner.cs
- BlockingCollection.cs
- BasicKeyConstraint.cs
- XPathDocumentBuilder.cs
- AssemblyBuilderData.cs
- HeaderedContentControl.cs
- DeviceContexts.cs