Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / Serialization / MemberHolder.cs / 1 / MemberHolder.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MemberHolder ** ** ** Purpose: This is a lightweight class designed to hold the members ** and StreamingContext for a particular class. ** ** ============================================================*/ namespace System.Runtime.Serialization { using System.Runtime.Remoting; using System; using System.Reflection; [Serializable()] internal class MemberHolder { internal MemberInfo[] members = null; internal Type memberType; internal StreamingContext context; internal MemberHolder(Type type, StreamingContext ctx) { memberType = type; context = ctx; } public override int GetHashCode() { return memberType.GetHashCode(); } public override bool Equals(Object obj) { if (!(obj is MemberHolder)) { return false; } MemberHolder temp = (MemberHolder)obj; if (temp.memberType==memberType && temp.context.State == context.State) { return true; } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MemberHolder ** ** ** Purpose: This is a lightweight class designed to hold the members ** and StreamingContext for a particular class. ** ** ============================================================*/ namespace System.Runtime.Serialization { using System.Runtime.Remoting; using System; using System.Reflection; [Serializable()] internal class MemberHolder { internal MemberInfo[] members = null; internal Type memberType; internal StreamingContext context; internal MemberHolder(Type type, StreamingContext ctx) { memberType = type; context = ctx; } public override int GetHashCode() { return memberType.GetHashCode(); } public override bool Equals(Object obj) { if (!(obj is MemberHolder)) { return false; } MemberHolder temp = (MemberHolder)obj; if (temp.memberType==memberType && temp.context.State == context.State) { return true; } 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
- COM2IPerPropertyBrowsingHandler.cs
- TextElementAutomationPeer.cs
- XmlAttributes.cs
- EntityDataSourceWrapperCollection.cs
- COM2PictureConverter.cs
- XmlDictionary.cs
- ComEventsSink.cs
- EntityDataSourceState.cs
- FontNameConverter.cs
- RuntimeWrappedException.cs
- FileCodeGroup.cs
- GlobalizationSection.cs
- XmlDataSourceView.cs
- PrintingPermission.cs
- SessionStateContainer.cs
- TableItemPattern.cs
- ForeignConstraint.cs
- CallbackException.cs
- ScopeElementCollection.cs
- SqlDependencyUtils.cs
- RectIndependentAnimationStorage.cs
- JournalEntryListConverter.cs
- AdPostCacheSubstitution.cs
- StateElementCollection.cs
- ScrollChrome.cs
- QilFactory.cs
- wgx_render.cs
- ListViewGroupConverter.cs
- ClientConfigurationHost.cs
- AttributeCollection.cs
- HostProtectionPermission.cs
- DoubleSumAggregationOperator.cs
- SafeArchiveContext.cs
- SecurityPermission.cs
- NavigationWindow.cs
- MenuAdapter.cs
- SubclassTypeValidator.cs
- SqlInternalConnection.cs
- Matrix3DValueSerializer.cs
- IInstanceTable.cs
- QuotaThrottle.cs
- ColorConvertedBitmap.cs
- Pair.cs
- TimeZone.cs
- UpdatePanelTrigger.cs
- AuthorizationRuleCollection.cs
- ApplicationSecurityManager.cs
- ValueProviderWrapper.cs
- _RequestCacheProtocol.cs
- LayoutDump.cs
- Size3DConverter.cs
- COAUTHIDENTITY.cs
- OverlappedContext.cs
- BindingNavigator.cs
- LockRecursionException.cs
- ProxyWebPartConnectionCollection.cs
- TextTreeExtractElementUndoUnit.cs
- ListViewDeletedEventArgs.cs
- SchemaImporterExtensionsSection.cs
- SqlClientWrapperSmiStream.cs
- UMPAttributes.cs
- CLSCompliantAttribute.cs
- ProviderCollection.cs
- CompatibleIComparer.cs
- X509Certificate.cs
- PrimitiveXmlSerializers.cs
- ImmutableCollection.cs
- MemberCollection.cs
- FrameworkTemplate.cs
- WebProxyScriptElement.cs
- XmlNode.cs
- WebPartConnectionsCancelEventArgs.cs
- LocatorBase.cs
- NativeCompoundFileAPIs.cs
- GlobalizationAssembly.cs
- TreeViewItemAutomationPeer.cs
- ProcessHostConfigUtils.cs
- TimeoutConverter.cs
- HMACRIPEMD160.cs
- CmsInterop.cs
- ISAPIApplicationHost.cs
- Funcletizer.cs
- ApplicationSettingsBase.cs
- ComplexBindingPropertiesAttribute.cs
- MeshGeometry3D.cs
- DataRelationPropertyDescriptor.cs
- CryptographicAttribute.cs
- IgnorePropertiesAttribute.cs
- SessionStateUtil.cs
- FilePrompt.cs
- ConfigurationLockCollection.cs
- FileStream.cs
- XPathScanner.cs
- AnalyzedTree.cs
- DataGridViewCellValidatingEventArgs.cs
- Pair.cs
- AtomParser.cs
- ObjectReaderCompiler.cs
- GridViewCancelEditEventArgs.cs
- HttpApplication.cs