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
- safelink.cs
- X509ChainElement.cs
- PermissionSetTriple.cs
- CompositeActivityCodeGenerator.cs
- XmlReflectionImporter.cs
- HMACSHA384.cs
- WebPartConnectionsConnectVerb.cs
- SerializerWriterEventHandlers.cs
- ValueTypeFixupInfo.cs
- Internal.cs
- ConstraintConverter.cs
- WizardStepBase.cs
- SvcMapFile.cs
- StronglyTypedResourceBuilder.cs
- LinkAreaEditor.cs
- DocumentSchemaValidator.cs
- PageSettings.cs
- hwndwrapper.cs
- MetaModel.cs
- EntityDataSourceChangedEventArgs.cs
- ToolStripLabel.cs
- InputLanguageSource.cs
- DocumentEventArgs.cs
- ByeMessageCD1.cs
- ToolBarButtonDesigner.cs
- RbTree.cs
- StringAnimationUsingKeyFrames.cs
- SubtreeProcessor.cs
- TextBoxAutoCompleteSourceConverter.cs
- webproxy.cs
- OpCodes.cs
- AuthenticodeSignatureInformation.cs
- InputMethodStateTypeInfo.cs
- ServicePointManager.cs
- EmbeddedMailObjectsCollection.cs
- CodeMemberProperty.cs
- UserControlDesigner.cs
- BinaryNegotiation.cs
- UnmanagedMemoryStream.cs
- PolicyLevel.cs
- CallSite.cs
- ProjectionCamera.cs
- ListViewUpdateEventArgs.cs
- KeyboardNavigation.cs
- ResourceManagerWrapper.cs
- XmlDocumentFieldSchema.cs
- WmlMobileTextWriter.cs
- DataListItem.cs
- SQLByte.cs
- ReadOnlyCollectionBuilder.cs
- KeyedHashAlgorithm.cs
- PartialCachingAttribute.cs
- FactoryGenerator.cs
- SocketInformation.cs
- WeakHashtable.cs
- xdrvalidator.cs
- DependencyObjectPropertyDescriptor.cs
- MemberHolder.cs
- NewExpression.cs
- HostVisual.cs
- FixedSOMPageConstructor.cs
- DuplicateWaitObjectException.cs
- FormViewPageEventArgs.cs
- PackageRelationshipCollection.cs
- EventLogInternal.cs
- DetailsViewRowCollection.cs
- MostlySingletonList.cs
- StaticContext.cs
- CheckBoxAutomationPeer.cs
- _SafeNetHandles.cs
- ObfuscateAssemblyAttribute.cs
- GroupStyle.cs
- CompositeControl.cs
- WebPartDescriptionCollection.cs
- NonDualMessageSecurityOverHttp.cs
- WebResourceUtil.cs
- AnonymousIdentificationSection.cs
- FragmentQuery.cs
- Expressions.cs
- ToolBarPanel.cs
- Win32.cs
- TextRunProperties.cs
- LicFileLicenseProvider.cs
- LayoutEngine.cs
- Stylus.cs
- XmlEventCache.cs
- FtpWebRequest.cs
- EmbeddedMailObjectCollectionEditor.cs
- UrlPath.cs
- RC2.cs
- _HeaderInfoTable.cs
- BinaryMethodMessage.cs
- SizeFConverter.cs
- ValidationHelper.cs
- EncoderParameter.cs
- RepeaterItem.cs
- EventPropertyMap.cs
- DataGridViewDataConnection.cs
- RuntimeVariableList.cs
- SiteOfOriginContainer.cs