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
- StateMachine.cs
- AnimatedTypeHelpers.cs
- Camera.cs
- GridViewColumn.cs
- PrimitiveCodeDomSerializer.cs
- ToolboxComponentsCreatedEventArgs.cs
- VarRefManager.cs
- SchemaElementDecl.cs
- ObjectDataSourceChooseTypePanel.cs
- LifetimeServices.cs
- QueryHandler.cs
- SelectedDatesCollection.cs
- ProcessHostMapPath.cs
- assertwrapper.cs
- PropertyChangedEventArgs.cs
- TransformPattern.cs
- ErasingStroke.cs
- Int16Animation.cs
- ScriptResourceAttribute.cs
- CmsUtils.cs
- ScriptingJsonSerializationSection.cs
- RoleManagerEventArgs.cs
- SymbolTable.cs
- SecurityImpersonationBehavior.cs
- DataGridViewComboBoxColumn.cs
- TraceSection.cs
- mactripleDES.cs
- UnsafeNativeMethodsPenimc.cs
- EtwTrace.cs
- ADMembershipUser.cs
- ConfigDefinitionUpdates.cs
- NavigationProperty.cs
- CodeDefaultValueExpression.cs
- ScriptingSectionGroup.cs
- SequenceDesigner.cs
- QuestionEventArgs.cs
- ExpressionBindings.cs
- GenericAuthenticationEventArgs.cs
- TableCellCollection.cs
- WebPartUserCapability.cs
- UrlSyndicationContent.cs
- EarlyBoundInfo.cs
- FormViewCommandEventArgs.cs
- StaticSiteMapProvider.cs
- ThaiBuddhistCalendar.cs
- StrokeCollection2.cs
- ObjectParameter.cs
- ContextQuery.cs
- ActivityTrace.cs
- Translator.cs
- DataGridViewAdvancedBorderStyle.cs
- SecurityElement.cs
- RegisteredScript.cs
- HttpStaticObjectsCollectionBase.cs
- SafeHandles.cs
- sqlmetadatafactory.cs
- RijndaelManagedTransform.cs
- GridViewUpdatedEventArgs.cs
- NonSerializedAttribute.cs
- FixedSOMImage.cs
- CodeMemberProperty.cs
- CurrentChangingEventArgs.cs
- SplitterEvent.cs
- FunctionNode.cs
- _SafeNetHandles.cs
- BindableTemplateBuilder.cs
- OleDbEnumerator.cs
- Directory.cs
- BitmapMetadataBlob.cs
- DataGridViewCellEventArgs.cs
- SR.cs
- UpDownEvent.cs
- DataGridViewHeaderCell.cs
- DocobjHost.cs
- SafeFileMappingHandle.cs
- DataServiceKeyAttribute.cs
- smtppermission.cs
- DataRowChangeEvent.cs
- BindingContext.cs
- FtpWebResponse.cs
- OleDbDataReader.cs
- GridViewPageEventArgs.cs
- VolatileEnlistmentMultiplexing.cs
- HebrewCalendar.cs
- Visual3D.cs
- Int16.cs
- NetworkInformationException.cs
- BaseDataBoundControl.cs
- UnmanagedMarshal.cs
- SqlGenericUtil.cs
- PropertyMapper.cs
- DNS.cs
- HtmlPhoneCallAdapter.cs
- handlecollector.cs
- XmlAnyElementAttribute.cs
- ConnectionConsumerAttribute.cs
- XPathDocumentBuilder.cs
- XmlTextWriter.cs
- TCEAdapterGenerator.cs
- mda.cs