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
- CompletionCallbackWrapper.cs
- documentsequencetextpointer.cs
- ReliableOutputSessionChannel.cs
- DocumentXmlWriter.cs
- CollectionViewGroup.cs
- QuarticEase.cs
- DesignerActionPropertyItem.cs
- Catch.cs
- Rect.cs
- FormClosedEvent.cs
- ErrorCodes.cs
- CertificateManager.cs
- QueryOutputWriterV1.cs
- DivideByZeroException.cs
- ExcludePathInfo.cs
- LocalClientSecuritySettings.cs
- SystemIPv4InterfaceProperties.cs
- DBParameter.cs
- HeaderUtility.cs
- CookieProtection.cs
- RuntimeConfig.cs
- RequestQueryParser.cs
- DynamicMethod.cs
- DataView.cs
- ListViewCommandEventArgs.cs
- ClientSettingsSection.cs
- CalendarDesigner.cs
- CompensationDesigner.cs
- Msmq4SubqueuePoisonHandler.cs
- LabelAutomationPeer.cs
- ProcessProtocolHandler.cs
- DecimalFormatter.cs
- XmlTextWriter.cs
- BaseValidator.cs
- EdmSchemaAttribute.cs
- StandardOleMarshalObject.cs
- SQLByteStorage.cs
- CodeDomSerializer.cs
- DropSource.cs
- XmlSchema.cs
- RepeaterCommandEventArgs.cs
- ToolStrip.cs
- HostProtectionException.cs
- VectorValueSerializer.cs
- CodeDirectiveCollection.cs
- Point.cs
- Empty.cs
- LifetimeServices.cs
- OpenTypeLayout.cs
- NameValueConfigurationCollection.cs
- HtmlPanelAdapter.cs
- ActivityExecutor.cs
- XmlSerializationGeneratedCode.cs
- ListBoxItemAutomationPeer.cs
- Underline.cs
- ChtmlCommandAdapter.cs
- ImageKeyConverter.cs
- DomainUpDown.cs
- webproxy.cs
- cryptoapiTransform.cs
- UnitySerializationHolder.cs
- FixedSOMGroup.cs
- DynamicScriptObject.cs
- XmlSchemaAnyAttribute.cs
- XslException.cs
- TransformGroup.cs
- Operand.cs
- XamlToRtfWriter.cs
- WeakReference.cs
- EnumDataContract.cs
- SignatureToken.cs
- ProgressBarHighlightConverter.cs
- ClientOptions.cs
- TcpDuplicateContext.cs
- ConfigXmlWhitespace.cs
- IsolatedStorageException.cs
- CodeCompileUnit.cs
- SafeHGlobalHandleCritical.cs
- HashAlgorithm.cs
- DrawingServices.cs
- ParsedAttributeCollection.cs
- ExtensionWindowResizeGrip.cs
- RSAPKCS1KeyExchangeFormatter.cs
- MainMenu.cs
- EntityContainerEntitySet.cs
- DSASignatureDeformatter.cs
- BezierSegment.cs
- CryptoStream.cs
- UnsafeNativeMethods.cs
- InvalidEnumArgumentException.cs
- CellTreeNode.cs
- DispatcherObject.cs
- PartialCachingAttribute.cs
- Publisher.cs
- JulianCalendar.cs
- RouteParametersHelper.cs
- DBAsyncResult.cs
- SerialPinChanges.cs
- XmlDocumentType.cs
- DbConnectionPoolIdentity.cs