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
- SqlConnectionManager.cs
- GridViewColumnHeaderAutomationPeer.cs
- GridViewColumnHeader.cs
- FocusWithinProperty.cs
- TextContainerHelper.cs
- CodeDomSerializer.cs
- AnimationStorage.cs
- ConstraintManager.cs
- SHA384Managed.cs
- BaseHashHelper.cs
- StandardCommands.cs
- HotCommands.cs
- RegisteredExpandoAttribute.cs
- EventWaitHandleSecurity.cs
- HtmlFormWrapper.cs
- DataGridViewCellStyle.cs
- EmptyEnumerable.cs
- SignedPkcs7.cs
- ContainerParagraph.cs
- NestedContainer.cs
- SerializationFieldInfo.cs
- TabItem.cs
- OpCellTreeNode.cs
- SendKeys.cs
- BitmapCache.cs
- EntityDesignerUtils.cs
- DateTimeFormat.cs
- QueryOptionExpression.cs
- FactoryId.cs
- ActivityExecutorDelegateInfo.cs
- HttpHostedTransportConfiguration.cs
- HostingEnvironmentSection.cs
- GenerateTemporaryTargetAssembly.cs
- SpeakCompletedEventArgs.cs
- CompositeFontParser.cs
- ContentValidator.cs
- XPathBuilder.cs
- WebHttpSecurityModeHelper.cs
- RegexBoyerMoore.cs
- Clipboard.cs
- ExclusiveHandle.cs
- PageSettings.cs
- ContentElement.cs
- PolygonHotSpot.cs
- SessionParameter.cs
- RegisteredArrayDeclaration.cs
- RemoveStoryboard.cs
- TargetParameterCountException.cs
- XPathDocumentIterator.cs
- DocumentViewerConstants.cs
- ColumnResizeUndoUnit.cs
- NavigatorOutput.cs
- WebPartsSection.cs
- XmlWhitespace.cs
- LoginName.cs
- SystemIcons.cs
- ScriptingProfileServiceSection.cs
- SrgsRule.cs
- SoapExtensionReflector.cs
- UnwrappedTypesXmlSerializerManager.cs
- TypePropertyEditor.cs
- ListChangedEventArgs.cs
- JavascriptCallbackMessageInspector.cs
- TypeTypeConverter.cs
- MessagingDescriptionAttribute.cs
- RSAProtectedConfigurationProvider.cs
- EnumConverter.cs
- ReferencedCollectionType.cs
- WhitespaceSignificantCollectionAttribute.cs
- WindowsRegion.cs
- smtppermission.cs
- MatrixTransform3D.cs
- DPAPIProtectedConfigurationProvider.cs
- AbstractDataSvcMapFileLoader.cs
- PageScaling.cs
- PasswordTextNavigator.cs
- EFColumnProvider.cs
- UIElementAutomationPeer.cs
- EntityWrapperFactory.cs
- DetailsViewRow.cs
- SendKeys.cs
- TextComposition.cs
- ExceptionUtility.cs
- SafeHandles.cs
- XmlArrayItemAttribute.cs
- OpacityConverter.cs
- WebPartConnectionsEventArgs.cs
- GridViewEditEventArgs.cs
- xsdvalidator.cs
- CodeExpressionStatement.cs
- StateElementCollection.cs
- WindowsRebar.cs
- NullableConverter.cs
- CqlIdentifiers.cs
- WpfKnownMemberInvoker.cs
- ScrollProperties.cs
- Expander.cs
- DataServiceException.cs
- HttpFileCollectionWrapper.cs
- GlyphingCache.cs