Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- AutomationPattern.cs
- WebPartVerbCollection.cs
- SmtpReplyReaderFactory.cs
- HttpApplication.cs
- ConsumerConnectionPointCollection.cs
- TrailingSpaceComparer.cs
- DropSource.cs
- CodeSnippetCompileUnit.cs
- ReliableChannelFactory.cs
- DoubleLinkListEnumerator.cs
- SimpleLine.cs
- DataServiceCollectionOfT.cs
- Util.cs
- ProfessionalColors.cs
- VarRefManager.cs
- UrlPath.cs
- ListBindingHelper.cs
- Light.cs
- linebase.cs
- ViewValidator.cs
- QuadraticEase.cs
- TreeNodeEventArgs.cs
- SqlStream.cs
- LexicalChunk.cs
- InkCanvasSelection.cs
- ContentPresenter.cs
- SeparatorAutomationPeer.cs
- MdiWindowListItemConverter.cs
- TextServicesProperty.cs
- SplashScreen.cs
- EntityDataSourceDataSelectionPanel.cs
- DocumentGridContextMenu.cs
- DbConnectionOptions.cs
- ElasticEase.cs
- MatrixValueSerializer.cs
- TextElementEnumerator.cs
- TextElement.cs
- TextModifier.cs
- __ConsoleStream.cs
- SamlAdvice.cs
- MonitoringDescriptionAttribute.cs
- DrawListViewSubItemEventArgs.cs
- ActivityCodeDomSerializer.cs
- ScrollChrome.cs
- SinglePhaseEnlistment.cs
- BitVector32.cs
- IPipelineRuntime.cs
- HostingPreferredMapPath.cs
- EndpointIdentityConverter.cs
- webproxy.cs
- DataGridViewAdvancedBorderStyle.cs
- FileDetails.cs
- StreamAsIStream.cs
- MD5CryptoServiceProvider.cs
- UserControlBuildProvider.cs
- RegexReplacement.cs
- Rect.cs
- SqlConnectionPoolProviderInfo.cs
- NativeRightsManagementAPIsStructures.cs
- DataGridViewHitTestInfo.cs
- MissingMethodException.cs
- WebPartConnectionsConnectVerb.cs
- __Error.cs
- FloaterBaseParagraph.cs
- PresentationAppDomainManager.cs
- HighContrastHelper.cs
- Compiler.cs
- WebPageTraceListener.cs
- GatewayIPAddressInformationCollection.cs
- KeySplineConverter.cs
- ObjectViewListener.cs
- EnumValidator.cs
- Line.cs
- FileDetails.cs
- SamlDoNotCacheCondition.cs
- TemplateInstanceAttribute.cs
- WmlSelectionListAdapter.cs
- ServiceX509SecurityTokenProvider.cs
- DbDataSourceEnumerator.cs
- DataGridViewRowHeaderCell.cs
- SafeCryptHandles.cs
- tooltip.cs
- SafeArrayTypeMismatchException.cs
- HtmlForm.cs
- EditorPartCollection.cs
- ServiceDescriptions.cs
- CompressEmulationStream.cs
- PeerInputChannelListener.cs
- AttributeUsageAttribute.cs
- GraphicsContainer.cs
- Geometry3D.cs
- Int64.cs
- MenuEventArgs.cs
- ErrorEventArgs.cs
- FontCacheLogic.cs
- BindingsCollection.cs
- InheritanceContextHelper.cs
- input.cs
- WebPartEditorOkVerb.cs
- NeutralResourcesLanguageAttribute.cs