Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SelectiveScrollingGrid.cs
- WsdlEndpointConversionContext.cs
- DiscoveryClientReferences.cs
- BufferedGraphicsContext.cs
- TreeNodeMouseHoverEvent.cs
- DATA_BLOB.cs
- PathSegment.cs
- PathFigureCollectionConverter.cs
- Ray3DHitTestResult.cs
- SimpleMailWebEventProvider.cs
- RecordBuilder.cs
- MarkupProperty.cs
- RadialGradientBrush.cs
- SqlWriter.cs
- AppDomainAttributes.cs
- BitmapSource.cs
- X509Certificate.cs
- WebHttpElement.cs
- ObjectStateFormatter.cs
- VirtualPathExtension.cs
- MessageBox.cs
- CrossContextChannel.cs
- AttachedPropertyBrowsableAttribute.cs
- PKCS1MaskGenerationMethod.cs
- wgx_sdk_version.cs
- PasswordBox.cs
- CodeTypeDeclarationCollection.cs
- XmlSchemaSubstitutionGroup.cs
- DllNotFoundException.cs
- IgnoreSectionHandler.cs
- WebPartZoneBaseDesigner.cs
- SqlExpander.cs
- PeerPresenceInfo.cs
- Globals.cs
- NamespaceList.cs
- OleDbFactory.cs
- MailWriter.cs
- DirectoryRootQuery.cs
- CombinedGeometry.cs
- MultipleViewPattern.cs
- CmsInterop.cs
- ListSortDescription.cs
- rsa.cs
- CodePageUtils.cs
- DefaultEventAttribute.cs
- ClientFormsIdentity.cs
- RemotingConfiguration.cs
- RadioButtonFlatAdapter.cs
- ErrorItem.cs
- ValidationHelpers.cs
- CategoryNameCollection.cs
- AxisAngleRotation3D.cs
- TryExpression.cs
- StylusPointProperty.cs
- Translator.cs
- ValueSerializer.cs
- QueryContinueDragEvent.cs
- SortKey.cs
- TrackingProfileManager.cs
- ActivityDesigner.cs
- CodeComment.cs
- XmlNodeReader.cs
- AssemblyBuilderData.cs
- FreezableDefaultValueFactory.cs
- ImageDrawing.cs
- ProtocolState.cs
- RefreshPropertiesAttribute.cs
- CreateUserErrorEventArgs.cs
- SliderAutomationPeer.cs
- Rijndael.cs
- ImageAnimator.cs
- SharedConnectionListener.cs
- TrustVersion.cs
- MouseBinding.cs
- Operators.cs
- RoleManagerModule.cs
- SharedPersonalizationStateInfo.cs
- ThicknessKeyFrameCollection.cs
- BezierSegment.cs
- InstanceKeyCompleteException.cs
- WebBrowser.cs
- XmlSchemaProviderAttribute.cs
- _CommandStream.cs
- Separator.cs
- RuleSettings.cs
- LinkConverter.cs
- NativeActivityMetadata.cs
- WebException.cs
- TextProperties.cs
- LambdaSerializationException.cs
- DataSet.cs
- GradientStopCollection.cs
- CommandField.cs
- Latin1Encoding.cs
- EventsTab.cs
- ClientEventManager.cs
- AutomationPropertyInfo.cs
- Int16.cs
- RequestNavigateEventArgs.cs
- TreeViewDataItemAutomationPeer.cs