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
- InnerItemCollectionView.cs
- InvalidateEvent.cs
- TextTreeRootTextBlock.cs
- DocumentPaginator.cs
- SspiWrapper.cs
- SystemIPInterfaceProperties.cs
- PageThemeCodeDomTreeGenerator.cs
- PeerCollaboration.cs
- GradientStop.cs
- TypeConverterAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- TransformConverter.cs
- GACIdentityPermission.cs
- Vertex.cs
- StateRuntime.cs
- _ChunkParse.cs
- AbandonedMutexException.cs
- X509AsymmetricSecurityKey.cs
- FormViewDesigner.cs
- NamespaceExpr.cs
- EasingFunctionBase.cs
- WebPartsPersonalizationAuthorization.cs
- FormViewRow.cs
- Inline.cs
- SystemIcmpV6Statistics.cs
- SettingsProperty.cs
- DataRowComparer.cs
- AtlasWeb.Designer.cs
- Solver.cs
- Attributes.cs
- TdsRecordBufferSetter.cs
- SoapBinding.cs
- MarkupExtensionReturnTypeAttribute.cs
- ISFTagAndGuidCache.cs
- RTLAwareMessageBox.cs
- InvalidateEvent.cs
- XmlArrayAttribute.cs
- ModifierKeysConverter.cs
- CodeGenerator.cs
- WmlPhoneCallAdapter.cs
- GridViewUpdatedEventArgs.cs
- CustomPopupPlacement.cs
- UIElementCollection.cs
- CipherData.cs
- RijndaelCryptoServiceProvider.cs
- FixedSOMPageConstructor.cs
- WebConfigurationHostFileChange.cs
- ByteBufferPool.cs
- ObjectToIdCache.cs
- TreeNodeMouseHoverEvent.cs
- ReadOnlyActivityGlyph.cs
- GeneralEndpointIdentity.cs
- CheckedPointers.cs
- CanonicalXml.cs
- SafeCryptHandles.cs
- SortAction.cs
- ObjectContext.cs
- CodeAttributeArgumentCollection.cs
- MethodBuilder.cs
- httpapplicationstate.cs
- ToolStripArrowRenderEventArgs.cs
- LocatorPart.cs
- ControlBuilderAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RowVisual.cs
- MethodRental.cs
- ChannelBuilder.cs
- EventPropertyMap.cs
- ProfileManager.cs
- StrokeSerializer.cs
- ExpressionEditorAttribute.cs
- PersianCalendar.cs
- FormViewDeletedEventArgs.cs
- EventTrigger.cs
- TextMetrics.cs
- RemoveStoryboard.cs
- OleDbCommandBuilder.cs
- TdsValueSetter.cs
- JoinElimination.cs
- WmlLiteralTextAdapter.cs
- GACMembershipCondition.cs
- DataColumnMappingCollection.cs
- XmlLoader.cs
- DataGridItemCollection.cs
- DataContext.cs
- FlagsAttribute.cs
- SQLDecimalStorage.cs
- GetMemberBinder.cs
- DataSourceProvider.cs
- SizeAnimationClockResource.cs
- TextAutomationPeer.cs
- DeviceSpecific.cs
- AutomationProperties.cs
- ResourceDisplayNameAttribute.cs
- CqlBlock.cs
- HighlightComponent.cs
- Directory.cs
- TemplatePagerField.cs
- NameScopePropertyAttribute.cs
- DeadCharTextComposition.cs