Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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
- PropertyGrid.cs
- ListViewItem.cs
- SqlStatistics.cs
- AnnotationResourceChangedEventArgs.cs
- RectValueSerializer.cs
- ReferenceAssemblyAttribute.cs
- EdmMember.cs
- InvokeCompletedEventArgs.cs
- StringReader.cs
- HasCopySemanticsAttribute.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- MsmqInputChannel.cs
- ThemeInfoAttribute.cs
- NativeMethods.cs
- FixedFlowMap.cs
- Stream.cs
- HyperLink.cs
- FrameworkObject.cs
- ReliabilityContractAttribute.cs
- Rfc2898DeriveBytes.cs
- ProcessDesigner.cs
- InlineUIContainer.cs
- FloatMinMaxAggregationOperator.cs
- StorageModelBuildProvider.cs
- DistinctQueryOperator.cs
- CacheForPrimitiveTypes.cs
- UserControl.cs
- DefaultShape.cs
- CollectionBase.cs
- SqlProcedureAttribute.cs
- PhysicalAddress.cs
- Attributes.cs
- StrongNameKeyPair.cs
- ResourcePool.cs
- AlignmentYValidation.cs
- DynamicRendererThreadManager.cs
- Themes.cs
- WebPartTransformer.cs
- ButtonColumn.cs
- MobileSysDescriptionAttribute.cs
- NullableLongMinMaxAggregationOperator.cs
- ScriptingRoleServiceSection.cs
- Literal.cs
- Columns.cs
- DbConnectionPool.cs
- Converter.cs
- DynamicField.cs
- BoundField.cs
- InheritanceRules.cs
- CollectionViewGroupRoot.cs
- HttpVersion.cs
- HttpModulesSection.cs
- BinaryUtilClasses.cs
- Util.cs
- AuthenticationServiceManager.cs
- TabletDevice.cs
- DataGridViewRowEventArgs.cs
- CompModSwitches.cs
- SafeLibraryHandle.cs
- OdbcHandle.cs
- ByteStorage.cs
- Event.cs
- BoolExpression.cs
- FormsAuthenticationCredentials.cs
- BrowserDefinition.cs
- DBParameter.cs
- SqlDataSourceView.cs
- columnmapfactory.cs
- TextEditorThreadLocalStore.cs
- PerformanceCounterScope.cs
- IndicFontClient.cs
- XpsFixedPageReaderWriter.cs
- ResourceReader.cs
- CodeTypeConstructor.cs
- ExpressionBuilder.cs
- ResourceDefaultValueAttribute.cs
- ResourcesChangeInfo.cs
- NullRuntimeConfig.cs
- ThicknessAnimation.cs
- DataBoundControl.cs
- ApplicationInfo.cs
- MappingSource.cs
- AddressAccessDeniedException.cs
- DataRowChangeEvent.cs
- SlipBehavior.cs
- MergeLocalizationDirectives.cs
- BindableAttribute.cs
- SplitterPanel.cs
- DefaultBindingPropertyAttribute.cs
- DecoratedNameAttribute.cs
- SafeRegistryKey.cs
- DataServiceProcessingPipeline.cs
- DynamicPhysicalDiscoSearcher.cs
- ModelPropertyImpl.cs
- BookmarkInfo.cs
- Int16Animation.cs
- SqlProfileProvider.cs
- WindowsStatusBar.cs
- DataGridViewRowCollection.cs
- StrongNameUtility.cs