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
- MemberAssignment.cs
- SendMessageContent.cs
- MetadataCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- DependencyProperty.cs
- XmlDsigSep2000.cs
- DataColumnMapping.cs
- ITextView.cs
- ListViewItemCollectionEditor.cs
- ALinqExpressionVisitor.cs
- ButtonField.cs
- TransformCollection.cs
- AppDomainManager.cs
- TextStore.cs
- ThreadExceptionEvent.cs
- Pen.cs
- HostDesigntimeLicenseContext.cs
- DoubleMinMaxAggregationOperator.cs
- sqlnorm.cs
- ProcessInfo.cs
- XmlElementCollection.cs
- ComboBoxItem.cs
- TableLayoutSettings.cs
- DoubleAnimationClockResource.cs
- LeaseManager.cs
- NotifyInputEventArgs.cs
- DependencyObjectType.cs
- FormViewUpdatedEventArgs.cs
- RadioButton.cs
- CodeArrayCreateExpression.cs
- UnitControl.cs
- SqlClientWrapperSmiStream.cs
- Version.cs
- GetPageNumberCompletedEventArgs.cs
- AttachedPropertyBrowsableAttribute.cs
- Command.cs
- MergeFilterQuery.cs
- HyperLinkColumn.cs
- FieldToken.cs
- DataRowComparer.cs
- NotFiniteNumberException.cs
- DragDrop.cs
- TextAction.cs
- PerformanceCounters.cs
- BufferBuilder.cs
- SignedXml.cs
- DataGridAddNewRow.cs
- Point3D.cs
- ImageAutomationPeer.cs
- CommentEmitter.cs
- SubpageParagraph.cs
- HatchBrush.cs
- CardSpacePolicyElement.cs
- VirtualPath.cs
- TypeConverter.cs
- SQlBooleanStorage.cs
- Internal.cs
- ConsumerConnectionPointCollection.cs
- HeaderedContentControl.cs
- MutexSecurity.cs
- ObjectCloneHelper.cs
- CheckPair.cs
- MessageBox.cs
- MouseActionConverter.cs
- ReachDocumentSequenceSerializer.cs
- KeyTimeConverter.cs
- ConstantExpression.cs
- MemoryPressure.cs
- SafeProcessHandle.cs
- XmlMapping.cs
- ParameterElement.cs
- ConfigurationElementCollection.cs
- SatelliteContractVersionAttribute.cs
- ToolStripGrip.cs
- AQNBuilder.cs
- ValidationEventArgs.cs
- HwndStylusInputProvider.cs
- ConfigurationPermission.cs
- StyleTypedPropertyAttribute.cs
- DataSourceXmlElementAttribute.cs
- DesignTimeTemplateParser.cs
- FrameworkElementFactory.cs
- TypedTableGenerator.cs
- StateWorkerRequest.cs
- NavigationPropertyEmitter.cs
- HttpWebRequest.cs
- AdapterUtil.cs
- FrugalList.cs
- DesignerCategoryAttribute.cs
- SynchronizedDispatch.cs
- EncoderReplacementFallback.cs
- SchemaTypeEmitter.cs
- InvariantComparer.cs
- ExpressionVisitor.cs
- BitmapEffectState.cs
- Rectangle.cs
- ListMarkerLine.cs
- DataGridViewHitTestInfo.cs
- ElementFactory.cs
- FormsAuthenticationUser.cs