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
- IgnoreSectionHandler.cs
- PolyLineSegmentFigureLogic.cs
- Soap12FormatExtensions.cs
- TemplateKey.cs
- SiteMapDataSource.cs
- MaterialGroup.cs
- Rect3DConverter.cs
- XdrBuilder.cs
- TypedReference.cs
- CornerRadius.cs
- TakeOrSkipQueryOperator.cs
- ListControlConvertEventArgs.cs
- GlobalProxySelection.cs
- CatalogPartDesigner.cs
- Synchronization.cs
- SchemaImporterExtensionElement.cs
- EmbeddedObject.cs
- AuthorizationContext.cs
- AccessKeyManager.cs
- SourceFilter.cs
- Sequence.cs
- TypeConverter.cs
- _AutoWebProxyScriptHelper.cs
- _Events.cs
- SR.cs
- CustomPopupPlacement.cs
- AllMembershipCondition.cs
- FormatterServices.cs
- CustomValidator.cs
- EventQueueState.cs
- GroupStyle.cs
- CodeIdentifiers.cs
- DataGridViewCellStyleEditor.cs
- ObjectViewEntityCollectionData.cs
- PerformanceCounterPermissionEntryCollection.cs
- Claim.cs
- DesignerVerbCollection.cs
- ToolboxItemAttribute.cs
- InvokeBinder.cs
- DateBoldEvent.cs
- FieldBuilder.cs
- TranslateTransform.cs
- TreeIterator.cs
- _LocalDataStoreMgr.cs
- BitmapEffectDrawingContent.cs
- PerformanceCounterLib.cs
- wgx_commands.cs
- XmlReflectionImporter.cs
- HandlerWithFactory.cs
- AttachInfo.cs
- CatalogZoneDesigner.cs
- Inline.cs
- Viewport3DVisual.cs
- Certificate.cs
- CellTreeNodeVisitors.cs
- Point3DIndependentAnimationStorage.cs
- VirtualizedItemPattern.cs
- Rules.cs
- ObjectDataSourceFilteringEventArgs.cs
- MethodSignatureGenerator.cs
- DataGridViewControlCollection.cs
- StopRoutingHandler.cs
- RoleManagerEventArgs.cs
- ListViewDeletedEventArgs.cs
- WebServicesDescriptionAttribute.cs
- JsonReader.cs
- AmbientLight.cs
- ActiveXHost.cs
- ItemsChangedEventArgs.cs
- HyperLink.cs
- XmlSchemaNotation.cs
- ClosableStream.cs
- ConnectionPoolManager.cs
- ProjectionPlanCompiler.cs
- CacheOutputQuery.cs
- NamespaceMapping.cs
- FloaterParaClient.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DtdParser.cs
- AvtEvent.cs
- ExcludePathInfo.cs
- QueryAccessibilityHelpEvent.cs
- ToolboxItemWrapper.cs
- CodeCommentStatementCollection.cs
- DataRowChangeEvent.cs
- DataKeyCollection.cs
- PenLineCapValidation.cs
- SqlUserDefinedTypeAttribute.cs
- DockProviderWrapper.cs
- ItemCheckEvent.cs
- ObjectAnimationUsingKeyFrames.cs
- OleDbErrorCollection.cs
- DeleteMemberBinder.cs
- storepermission.cs
- WebPartsPersonalization.cs
- ConfigurationSettings.cs
- RuntimeWrappedException.cs
- IdentityNotMappedException.cs
- DataGridItem.cs
- RangeBase.cs