Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DocumentReference.cs
- _Semaphore.cs
- WebPartMenu.cs
- xmlsaver.cs
- FrameworkPropertyMetadata.cs
- TransformConverter.cs
- EntityClientCacheEntry.cs
- ReadOnlyTernaryTree.cs
- TabControlAutomationPeer.cs
- RenderData.cs
- XmlBindingWorker.cs
- FormConverter.cs
- SystemUdpStatistics.cs
- Graph.cs
- XmlSchemaDocumentation.cs
- Compiler.cs
- ConstraintManager.cs
- ConsoleTraceListener.cs
- MainMenu.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Cursor.cs
- DataGridViewButtonCell.cs
- CodeDOMProvider.cs
- InstalledFontCollection.cs
- SerialPinChanges.cs
- PinnedBufferMemoryStream.cs
- SchemaCollectionCompiler.cs
- SurrogateEncoder.cs
- MyContact.cs
- BamlCollectionHolder.cs
- CapabilitiesPattern.cs
- Window.cs
- WSSecurityPolicy.cs
- InternalEnumValidatorAttribute.cs
- AssociationTypeEmitter.cs
- XmlCharCheckingReader.cs
- ZipIOExtraFieldElement.cs
- WindowsFormsEditorServiceHelper.cs
- EmbeddedMailObjectCollectionEditor.cs
- WindowsIdentity.cs
- VariantWrapper.cs
- WindowsListViewItem.cs
- ManagementNamedValueCollection.cs
- XMLDiffLoader.cs
- CodeExporter.cs
- AnnotationService.cs
- GridViewUpdateEventArgs.cs
- HttpException.cs
- PkcsUtils.cs
- TimeSpanValidatorAttribute.cs
- ListSortDescriptionCollection.cs
- DocobjHost.cs
- HandoffBehavior.cs
- Helpers.cs
- FtpCachePolicyElement.cs
- StrongNameMembershipCondition.cs
- BindingManagerDataErrorEventArgs.cs
- AllMembershipCondition.cs
- OleStrCAMarshaler.cs
- NativeMethods.cs
- MatrixStack.cs
- ClientRoleProvider.cs
- TextChangedEventArgs.cs
- FormsAuthenticationModule.cs
- HtmlInputHidden.cs
- DecimalKeyFrameCollection.cs
- TypeBinaryExpression.cs
- SevenBitStream.cs
- GridViewDeletedEventArgs.cs
- WebDisplayNameAttribute.cs
- IBuiltInEvidence.cs
- SystemColors.cs
- LexicalChunk.cs
- WorkflowItemPresenter.cs
- SessionStateModule.cs
- PageClientProxyGenerator.cs
- WebServicesDescriptionAttribute.cs
- VirtualPathProvider.cs
- DiscoveryInnerClientAdhoc11.cs
- SizeConverter.cs
- RIPEMD160Managed.cs
- DbConnectionStringCommon.cs
- ColumnResizeUndoUnit.cs
- SpecialNameAttribute.cs
- HttpInputStream.cs
- ScaleTransform3D.cs
- _SpnDictionary.cs
- XmlIlTypeHelper.cs
- StandardOleMarshalObject.cs
- ResourceDisplayNameAttribute.cs
- ExpressionStringBuilder.cs
- FontCollection.cs
- ControlIdConverter.cs
- X509Extension.cs
- XamlLoadErrorInfo.cs
- MainMenu.cs
- formatter.cs
- Polyline.cs
- MetadataPropertyAttribute.cs
- Win32SafeHandles.cs