Code:
/ DotNET / DotNET / 8.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
- Array.cs
- XmlnsDictionary.cs
- BigInt.cs
- DecoratedNameAttribute.cs
- TypedReference.cs
- UInt64Converter.cs
- X509ServiceCertificateAuthenticationElement.cs
- GridView.cs
- GenericWebPart.cs
- CustomSignedXml.cs
- MetadataCache.cs
- ArcSegment.cs
- XmlEntity.cs
- DataGridDetailsPresenterAutomationPeer.cs
- MeasurementDCInfo.cs
- DataControlField.cs
- EventWaitHandle.cs
- Scene3D.cs
- ReverseComparer.cs
- ZipIOLocalFileBlock.cs
- TypefaceMap.cs
- TdsRecordBufferSetter.cs
- DurableMessageDispatchInspector.cs
- UdpDiscoveryEndpointElement.cs
- XsdDateTime.cs
- PenLineCapValidation.cs
- SiteMapDesignerDataSourceView.cs
- SafeProcessHandle.cs
- HashMembershipCondition.cs
- NodeFunctions.cs
- HtmlTableRowCollection.cs
- ControlBindingsCollection.cs
- SmtpCommands.cs
- LinkButton.cs
- SubstitutionResponseElement.cs
- _DisconnectOverlappedAsyncResult.cs
- AnnotationResource.cs
- FlowDocumentPageViewerAutomationPeer.cs
- MSAANativeProvider.cs
- Viewport2DVisual3D.cs
- NestPullup.cs
- StreamSecurityUpgradeInitiator.cs
- httpserverutility.cs
- XmlTextReaderImplHelpers.cs
- SmtpDigestAuthenticationModule.cs
- DataGridViewCellStateChangedEventArgs.cs
- RequestCacheEntry.cs
- MachineKeySection.cs
- HandleRef.cs
- EntityFunctions.cs
- MenuItemCollection.cs
- FactoryId.cs
- SpeakProgressEventArgs.cs
- NetworkAddressChange.cs
- Stroke2.cs
- StatusBarPanelClickEvent.cs
- DrawingContextWalker.cs
- RuleRefElement.cs
- DBSqlParserTable.cs
- AsyncOperationManager.cs
- _SslStream.cs
- PropertyChangedEventArgs.cs
- Assign.cs
- AdapterUtil.cs
- StylusPointProperties.cs
- WebPartRestoreVerb.cs
- FileLoadException.cs
- ObjectListGeneralPage.cs
- SequenceNumber.cs
- SqlDataSourceCommandEventArgs.cs
- NavigationProperty.cs
- AttachedAnnotationChangedEventArgs.cs
- StateMachineDesignerPaint.cs
- RawTextInputReport.cs
- NonClientArea.cs
- DataGridLinkButton.cs
- DrawListViewItemEventArgs.cs
- DesignerVerb.cs
- ToolStripActionList.cs
- StoreAnnotationsMap.cs
- SQLInt64Storage.cs
- ListBindingConverter.cs
- DocumentPageViewAutomationPeer.cs
- ConfigXmlText.cs
- ListSortDescription.cs
- ThumbAutomationPeer.cs
- SettingsPropertyNotFoundException.cs
- _SingleItemRequestCache.cs
- QueryCacheManager.cs
- Stylus.cs
- InternalDispatchObject.cs
- Filter.cs
- Options.cs
- EventMappingSettings.cs
- SettingsPropertyValueCollection.cs
- WinCategoryAttribute.cs
- XmlSchemaAny.cs
- LayoutUtils.cs
- Parser.cs
- ViewCellRelation.cs