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
- NotifyParentPropertyAttribute.cs
- TimeSpan.cs
- HtmlProps.cs
- BuildProviderAppliesToAttribute.cs
- EdmComplexPropertyAttribute.cs
- Pointer.cs
- TreePrinter.cs
- ConfigurationCollectionAttribute.cs
- Parameter.cs
- UnSafeCharBuffer.cs
- RepeatInfo.cs
- AttachedAnnotationChangedEventArgs.cs
- SqlNodeAnnotations.cs
- MetricEntry.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- Typeface.cs
- Size.cs
- BufferedGraphicsContext.cs
- Image.cs
- ReverseComparer.cs
- ConfigurationLockCollection.cs
- GridViewSortEventArgs.cs
- WebBrowserSiteBase.cs
- ExpandSegmentCollection.cs
- ProcessThread.cs
- Atom10FormatterFactory.cs
- EndpointAddressProcessor.cs
- EdmMember.cs
- BitmapEffectInputConnector.cs
- XmlSubtreeReader.cs
- BinaryMessageFormatter.cs
- AccessKeyManager.cs
- Subset.cs
- ConfigurationErrorsException.cs
- ColumnBinding.cs
- EncoderExceptionFallback.cs
- ImageInfo.cs
- RegisterInfo.cs
- ConfigDefinitionUpdates.cs
- StringStorage.cs
- DrawingCollection.cs
- ReliableReplySessionChannel.cs
- ProcessThreadCollection.cs
- ConfigurationManagerHelper.cs
- BulletChrome.cs
- XMLDiffLoader.cs
- CombinedGeometry.cs
- PrintPreviewGraphics.cs
- ControlBuilder.cs
- UpdateProgress.cs
- ADRoleFactory.cs
- UniformGrid.cs
- ConfigurationManagerInternalFactory.cs
- Property.cs
- SimpleApplicationHost.cs
- EventDescriptor.cs
- ColumnReorderedEventArgs.cs
- TreeViewTemplateSelector.cs
- DeflateEmulationStream.cs
- PermissionListSet.cs
- DropAnimation.xaml.cs
- Emitter.cs
- CharacterHit.cs
- PropertyItem.cs
- HWStack.cs
- COSERVERINFO.cs
- OpenFileDialog.cs
- StrokeFIndices.cs
- safex509handles.cs
- uribuilder.cs
- EntityModelBuildProvider.cs
- ResizeGrip.cs
- WebControl.cs
- SiteMapNodeCollection.cs
- BitmapMetadataEnumerator.cs
- SerializationInfo.cs
- PermissionListSet.cs
- ConfigXmlElement.cs
- BindingsCollection.cs
- CaseCqlBlock.cs
- WebPartManagerInternals.cs
- EditorPart.cs
- ApplicationFileParser.cs
- NameValuePair.cs
- LicenseManager.cs
- BamlRecordHelper.cs
- WindowsProgressbar.cs
- MouseOverProperty.cs
- NetworkInformationException.cs
- ButtonBase.cs
- EntityCollection.cs
- AnnotationMap.cs
- XsdBuilder.cs
- ValidatingReaderNodeData.cs
- HandlerMappingMemo.cs
- Socket.cs
- RenderOptions.cs
- Int32RectConverter.cs
- RegexRunnerFactory.cs
- XamlReader.cs