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
- TypeSystemHelpers.cs
- SoapParser.cs
- MenuBindingsEditor.cs
- RowBinding.cs
- LazyTextWriterCreator.cs
- ClientUtils.cs
- MaskedTextProvider.cs
- DetailsViewPageEventArgs.cs
- WindowsFormsSectionHandler.cs
- WebPartVerbCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XamlTypeMapper.cs
- HashStream.cs
- BindingSourceDesigner.cs
- Int16.cs
- ReliableOutputSessionChannel.cs
- MetadataImporterQuotas.cs
- SQLInt32.cs
- ViewStateException.cs
- FormsAuthenticationUser.cs
- ReadContentAsBinaryHelper.cs
- QueryTask.cs
- XmlNodeReader.cs
- XmlSerializerAssemblyAttribute.cs
- AsyncOperationManager.cs
- DecoderNLS.cs
- ResourceManager.cs
- GPPOINTF.cs
- XmlSchemaSimpleContentRestriction.cs
- JoinElimination.cs
- Separator.cs
- SqlDataRecord.cs
- CallContext.cs
- basemetadatamappingvisitor.cs
- WebBrowser.cs
- SimpleRecyclingCache.cs
- HttpDigestClientCredential.cs
- CreateUserWizardStep.cs
- MarkupExtensionParser.cs
- SchemaCollectionPreprocessor.cs
- XmlHierarchicalEnumerable.cs
- BitmapCacheBrush.cs
- TableCell.cs
- _ConnectionGroup.cs
- ReceiveContent.cs
- MachineKey.cs
- ValidationSummary.cs
- HiddenFieldPageStatePersister.cs
- CommonDialog.cs
- Timer.cs
- TimeZoneNotFoundException.cs
- XslNumber.cs
- ToolStripItemDataObject.cs
- FunctionDescription.cs
- SubclassTypeValidator.cs
- MaskedTextBoxTextEditorDropDown.cs
- Mappings.cs
- QueryResult.cs
- bidPrivateBase.cs
- UserControl.cs
- EventSinkActivity.cs
- TreeView.cs
- WebPartConnectionsConnectVerb.cs
- FixedSOMTable.cs
- Operators.cs
- DrawingImage.cs
- ToolStripPanelRenderEventArgs.cs
- VirtualPath.cs
- LinkDesigner.cs
- SqlBooleanizer.cs
- XhtmlConformanceSection.cs
- Encoder.cs
- RightsManagementInformation.cs
- ThumbAutomationPeer.cs
- InkCollectionBehavior.cs
- StyleXamlParser.cs
- GcHandle.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- LinkTarget.cs
- TextServicesHost.cs
- BitmapEffectInputData.cs
- Transform.cs
- AllMembershipCondition.cs
- GridViewRowPresenterBase.cs
- ControlPropertyNameConverter.cs
- SHA384.cs
- IncrementalCompileAnalyzer.cs
- MemberPath.cs
- OwnerDrawPropertyBag.cs
- PointValueSerializer.cs
- CommonServiceBehaviorElement.cs
- Pair.cs
- PageParserFilter.cs
- _DigestClient.cs
- OdbcConnectionHandle.cs
- EdmToObjectNamespaceMap.cs
- DataBoundControlAdapter.cs
- basenumberconverter.cs
- SymmetricSecurityProtocol.cs
- FileDialog_Vista.cs