Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RequiredFieldValidator.cs
- XamlClipboardData.cs
- DeviceSpecificChoice.cs
- WebPart.cs
- CDSCollectionETWBCLProvider.cs
- FormConverter.cs
- DataGridViewHeaderCell.cs
- MimeTextImporter.cs
- WebPartZoneCollection.cs
- DesignerEditorPartChrome.cs
- versioninfo.cs
- NominalTypeEliminator.cs
- DropDownList.cs
- Win32.cs
- COM2AboutBoxPropertyDescriptor.cs
- GeneralTransform3DGroup.cs
- SchemaSetCompiler.cs
- BuildDependencySet.cs
- SystemGatewayIPAddressInformation.cs
- CreateParams.cs
- UrlMapping.cs
- ElementAction.cs
- ThousandthOfEmRealDoubles.cs
- M3DUtil.cs
- DocumentManager.cs
- ColumnWidthChangedEvent.cs
- ActiveXHost.cs
- DelegateHelpers.cs
- CatalogZoneBase.cs
- WebPartConnectionsCancelEventArgs.cs
- TemplatePropertyEntry.cs
- PingOptions.cs
- JournalEntryListConverter.cs
- Parser.cs
- AppSettingsReader.cs
- Window.cs
- RefreshPropertiesAttribute.cs
- XmlDomTextWriter.cs
- AddInIpcChannel.cs
- ResolvedKeyFrameEntry.cs
- TextRangeEditTables.cs
- TextDocumentView.cs
- PlainXmlWriter.cs
- FixedSOMFixedBlock.cs
- HostnameComparisonMode.cs
- LineGeometry.cs
- AttachedAnnotation.cs
- XmlParserContext.cs
- FactoryMaker.cs
- PointAnimationClockResource.cs
- ParameterExpression.cs
- TreeNodeCollection.cs
- Certificate.cs
- StaticExtension.cs
- StylusCaptureWithinProperty.cs
- MexHttpBindingElement.cs
- ScrollItemPattern.cs
- TokenBasedSetEnumerator.cs
- PrimitiveRenderer.cs
- OdbcErrorCollection.cs
- ObjectRef.cs
- ComplusTypeValidator.cs
- StringComparer.cs
- recordstatefactory.cs
- CustomValidator.cs
- EventWaitHandleSecurity.cs
- ProtectedConfigurationSection.cs
- ScrollChrome.cs
- XmlNodeChangedEventManager.cs
- CoreSwitches.cs
- RawStylusInputCustomDataList.cs
- ErrorFormatter.cs
- ProviderSettings.cs
- WindowsRegion.cs
- MemberPath.cs
- FieldToken.cs
- DesignerListAdapter.cs
- ping.cs
- ResourceCategoryAttribute.cs
- BaseCollection.cs
- Expander.cs
- OutputCacheProfileCollection.cs
- SizeAnimationBase.cs
- WebPartTransformerAttribute.cs
- HeaderedItemsControl.cs
- SqlHelper.cs
- RegexReplacement.cs
- CodePageUtils.cs
- BindingList.cs
- WindowsFormsHost.cs
- CatalogZone.cs
- SaveRecipientRequest.cs
- SourceItem.cs
- QilInvokeEarlyBound.cs
- XmlNullResolver.cs
- CellCreator.cs
- FileNotFoundException.cs
- SHA256.cs
- WebPartConnectionsConfigureVerb.cs
- GroupByQueryOperator.cs