Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / DefaultMemberAttribute.cs / 1 / DefaultMemberAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // DefaultMemberAttribute is defines the Member of a Type that is the "default" // member used by Type.InvokeMember. The default member is simply a name given // to a type. // // // // namespace System.Reflection { using System; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface),Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class DefaultMemberAttribute : Attribute { // The name of the member private String m_memberName; // You must provide the name of the member, this is required public DefaultMemberAttribute(String memberName) { m_memberName = memberName; } // A get accessor to return the name from the attribute. // NOTE: There is no setter because the name must be provided // to the constructor. The name is not optional. public String MemberName { get {return m_memberName;} } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CredentialCache.cs
- IisTraceWebEventProvider.cs
- ContainsSearchOperator.cs
- PresentationAppDomainManager.cs
- UnsafeNativeMethods.cs
- SerializationFieldInfo.cs
- RowVisual.cs
- DateTimeValueSerializer.cs
- PassportAuthenticationModule.cs
- WebServiceMethodData.cs
- FormViewInsertedEventArgs.cs
- ProjectionCamera.cs
- __TransparentProxy.cs
- BuildProviderAppliesToAttribute.cs
- AutomationFocusChangedEventArgs.cs
- ToolboxItemLoader.cs
- NotFiniteNumberException.cs
- RuntimeArgumentHandle.cs
- ThreadStaticAttribute.cs
- TreeNodeClickEventArgs.cs
- control.ime.cs
- Point3DCollection.cs
- FtpWebResponse.cs
- Style.cs
- ContractMapping.cs
- SelectionPatternIdentifiers.cs
- SqlMethodAttribute.cs
- HttpRuntimeSection.cs
- ProtocolInformationReader.cs
- ChtmlTextWriter.cs
- TraceHwndHost.cs
- LazyTextWriterCreator.cs
- ChameleonKey.cs
- TimeStampChecker.cs
- ImageBrush.cs
- TypeSystem.cs
- PKCS1MaskGenerationMethod.cs
- Camera.cs
- EntityDataSourceWizardForm.cs
- BitmapCodecInfo.cs
- MD5.cs
- IIS7UserPrincipal.cs
- CannotUnloadAppDomainException.cs
- SapiRecoInterop.cs
- ConstantCheck.cs
- TranslateTransform.cs
- CodeIndexerExpression.cs
- DataServiceRequestOfT.cs
- GorillaCodec.cs
- TaiwanCalendar.cs
- HtmlObjectListAdapter.cs
- GenericEnumerator.cs
- ListContractAdapter.cs
- RequestUriProcessor.cs
- MediaCommands.cs
- UriWriter.cs
- SerialStream.cs
- SoapElementAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- ICspAsymmetricAlgorithm.cs
- UTF32Encoding.cs
- PersonalizablePropertyEntry.cs
- DataGridState.cs
- DataShape.cs
- TimeoutHelper.cs
- DeviceSpecificChoiceCollection.cs
- FormattedTextSymbols.cs
- DefaultWorkflowLoaderService.cs
- Win32Exception.cs
- ProjectionPlan.cs
- StrokeCollection.cs
- NamespaceTable.cs
- DataGridSortCommandEventArgs.cs
- TraceLevelHelper.cs
- Control.cs
- XPathAncestorQuery.cs
- XmlSchemaInfo.cs
- ExpressionEditorAttribute.cs
- EventTrigger.cs
- HttpDigestClientCredential.cs
- NameSpaceEvent.cs
- CodeObjectCreateExpression.cs
- XMLUtil.cs
- CookieHandler.cs
- StringConverter.cs
- NotificationContext.cs
- CustomErrorCollection.cs
- TextTreeTextNode.cs
- BitmapEffect.cs
- AndMessageFilterTable.cs
- LogSwitch.cs
- TypeToken.cs
- ReferencedAssembly.cs
- UniqueConstraint.cs
- PersonalizationStateInfoCollection.cs
- Version.cs
- MSAAWinEventWrap.cs
- ForeignConstraint.cs
- SqlProviderUtilities.cs
- ControlValuePropertyAttribute.cs