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
- _BasicClient.cs
- WebPartCollection.cs
- ClientScriptManagerWrapper.cs
- WindowsTooltip.cs
- GridViewCommandEventArgs.cs
- SerializationSectionGroup.cs
- XmlImplementation.cs
- SQLBinary.cs
- ItemCheckEvent.cs
- InkCanvasSelectionAdorner.cs
- LinkConverter.cs
- ImplicitInputBrush.cs
- SettingsContext.cs
- ReadOnlyDataSourceView.cs
- HtmlCalendarAdapter.cs
- SqlConnectionFactory.cs
- UpdatePanelControlTrigger.cs
- DrawingImage.cs
- PointCollectionConverter.cs
- DragCompletedEventArgs.cs
- ServicePointManagerElement.cs
- WebControlAdapter.cs
- mactripleDES.cs
- DynamicExpression.cs
- SafeProcessHandle.cs
- CompositeControl.cs
- ColorTransformHelper.cs
- OdbcCommandBuilder.cs
- Floater.cs
- GroupDescription.cs
- WpfWebRequestHelper.cs
- WebColorConverter.cs
- GridViewSelectEventArgs.cs
- TextDecorationLocationValidation.cs
- InvokeMethodActivity.cs
- AssertFilter.cs
- BitFlagsGenerator.cs
- CompilerErrorCollection.cs
- Timer.cs
- DataTemplate.cs
- CompatibleIComparer.cs
- PaginationProgressEventArgs.cs
- CardSpacePolicyElement.cs
- SerialPinChanges.cs
- Object.cs
- SafeSecurityHandles.cs
- ValidationEventArgs.cs
- DataMember.cs
- DirectoryObjectSecurity.cs
- OpCodes.cs
- BamlResourceDeserializer.cs
- Bind.cs
- BooleanAnimationUsingKeyFrames.cs
- _AcceptOverlappedAsyncResult.cs
- RtfToXamlReader.cs
- ItemChangedEventArgs.cs
- CompilationLock.cs
- Propagator.cs
- Identity.cs
- ObjectNavigationPropertyMapping.cs
- RangeExpression.cs
- StrokeRenderer.cs
- SignatureResourcePool.cs
- TextRunTypographyProperties.cs
- SqlProvider.cs
- TextBoxAutoCompleteSourceConverter.cs
- ExclusiveHandle.cs
- CheckBox.cs
- CompressionTransform.cs
- Point3DKeyFrameCollection.cs
- Point3DCollection.cs
- TextTreeInsertElementUndoUnit.cs
- DataGridViewColumnCollection.cs
- Char.cs
- WindowsIPAddress.cs
- KnownTypes.cs
- ConfigurationSectionGroupCollection.cs
- EdmMember.cs
- RecognizerInfo.cs
- Base64Decoder.cs
- InputChannel.cs
- XmlWrappingReader.cs
- MSHTMLHostUtil.cs
- XmlAnyElementAttribute.cs
- Selector.cs
- Line.cs
- ExceptionUtil.cs
- SspiNegotiationTokenProviderState.cs
- LayoutSettings.cs
- EntityCommandCompilationException.cs
- DataGridRow.cs
- X509Utils.cs
- TableCellAutomationPeer.cs
- RuleRefElement.cs
- ExtendedProperty.cs
- CultureTable.cs
- Type.cs
- XmlAttributeProperties.cs
- BuildProvidersCompiler.cs
- ComplusTypeValidator.cs