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
- FormViewDesigner.cs
- SequenceRangeCollection.cs
- DecimalAnimationUsingKeyFrames.cs
- DeviceSpecificChoiceCollection.cs
- TimeStampChecker.cs
- SmiSettersStream.cs
- DependencyObjectType.cs
- XMLDiffLoader.cs
- SequentialWorkflowHeaderFooter.cs
- GroupItemAutomationPeer.cs
- _OSSOCK.cs
- DrawingCollection.cs
- XmlCollation.cs
- ToolBarPanel.cs
- AppAction.cs
- Block.cs
- TextServicesManager.cs
- FilterQuery.cs
- PropertyDescriptorCollection.cs
- LOSFormatter.cs
- UriPrefixTable.cs
- ETagAttribute.cs
- SchemaComplexType.cs
- XPathConvert.cs
- translator.cs
- EventRecord.cs
- WebControlToolBoxItem.cs
- MarshalByValueComponent.cs
- ClientScriptManagerWrapper.cs
- WaitHandle.cs
- _SafeNetHandles.cs
- RemotingConfigParser.cs
- BuildResult.cs
- OdbcConnectionOpen.cs
- Funcletizer.cs
- GridViewUpdatedEventArgs.cs
- Base64Encoder.cs
- GroupStyle.cs
- Geometry.cs
- CodeConditionStatement.cs
- Span.cs
- NameValuePermission.cs
- CharUnicodeInfo.cs
- VariantWrapper.cs
- UInt32.cs
- ListBindingHelper.cs
- HttpModulesSection.cs
- ExpressionBuilder.cs
- SiteIdentityPermission.cs
- NavigationProperty.cs
- FieldAccessException.cs
- Currency.cs
- PaperSource.cs
- EpmTargetPathSegment.cs
- Wildcard.cs
- ListBoxChrome.cs
- ProfileModule.cs
- UDPClient.cs
- HtmlControlDesigner.cs
- TaskSchedulerException.cs
- Expression.cs
- codemethodreferenceexpression.cs
- CapiNative.cs
- StrokeNodeOperations2.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- IntSecurity.cs
- ShutDownListener.cs
- FormsAuthenticationUser.cs
- IndexingContentUnit.cs
- WorkflowApplicationAbortedEventArgs.cs
- AmbiguousMatchException.cs
- EmptyCollection.cs
- Pen.cs
- SamlAuthenticationStatement.cs
- GridViewColumn.cs
- MutexSecurity.cs
- ContentElement.cs
- SByteStorage.cs
- BackgroundFormatInfo.cs
- ControlCachePolicy.cs
- Comparer.cs
- RelationshipEndCollection.cs
- EntityDataSourceUtil.cs
- ADConnectionHelper.cs
- ProcessHostServerConfig.cs
- RuntimeEnvironment.cs
- DesignTimeParseData.cs
- linebase.cs
- StylusSystemGestureEventArgs.cs
- VisualBasicHelper.cs
- BitHelper.cs
- DataSourceExpressionCollection.cs
- SQlBooleanStorage.cs
- DesignerAutoFormatCollection.cs
- CalendarAutoFormatDialog.cs
- EventMappingSettingsCollection.cs
- ContextProperty.cs
- SystemEvents.cs
- LambdaCompiler.Unary.cs
- Triplet.cs