Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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;} } } } // 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
- DESCryptoServiceProvider.cs
- SoapServerMessage.cs
- LineBreakRecord.cs
- NamespaceInfo.cs
- FilteredAttributeCollection.cs
- ExpressionBuilder.cs
- StrongNamePublicKeyBlob.cs
- TemplatingOptionsDialog.cs
- IndexerHelper.cs
- CaseInsensitiveComparer.cs
- StandardTransformFactory.cs
- HTMLTextWriter.cs
- StringCollectionMarkupSerializer.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ServiceDescriptionSerializer.cs
- ToolStripGrip.cs
- ReaderWriterLock.cs
- ActivityStateRecord.cs
- WizardStepCollectionEditor.cs
- PersianCalendar.cs
- ComponentChangedEvent.cs
- SchemaElement.cs
- OneWayBindingElement.cs
- Comparer.cs
- ExceptionUtil.cs
- ServicesUtilities.cs
- _CookieModule.cs
- MediaEntryAttribute.cs
- InputMethodStateTypeInfo.cs
- UidManager.cs
- Context.cs
- RelationshipConverter.cs
- AbandonedMutexException.cs
- URLMembershipCondition.cs
- CodeAttributeArgumentCollection.cs
- SafeArrayTypeMismatchException.cs
- ObjectListFieldCollection.cs
- BaseTemplateBuildProvider.cs
- TargetConverter.cs
- CustomWebEventKey.cs
- FontEmbeddingManager.cs
- DateTimeConverter.cs
- SafeCryptContextHandle.cs
- Ticks.cs
- StringFreezingAttribute.cs
- ParameterEditorUserControl.cs
- SqlBulkCopyColumnMapping.cs
- Baml6Assembly.cs
- EntityDataSourceSelectingEventArgs.cs
- HtmlInputSubmit.cs
- Timer.cs
- SamlAudienceRestrictionCondition.cs
- NameValuePair.cs
- PathData.cs
- SignedXml.cs
- _FixedSizeReader.cs
- SqlIdentifier.cs
- XmlEncodedRawTextWriter.cs
- MsmqProcessProtocolHandler.cs
- DebugView.cs
- Selection.cs
- TextElementEnumerator.cs
- ConfigurationStrings.cs
- ProxyManager.cs
- TextChangedEventArgs.cs
- FormsAuthenticationCredentials.cs
- X509ChainPolicy.cs
- Rect3DValueSerializer.cs
- DrawingDrawingContext.cs
- BaseDataBoundControl.cs
- SpellerHighlightLayer.cs
- DbProviderFactoriesConfigurationHandler.cs
- SiteMapPath.cs
- TextEncodedRawTextWriter.cs
- ClusterRegistryConfigurationProvider.cs
- JsonFormatGeneratorStatics.cs
- ThemeInfoAttribute.cs
- WebPartCatalogCloseVerb.cs
- DataGridCellItemAutomationPeer.cs
- DocumentPage.cs
- XPathScanner.cs
- MessageRpc.cs
- HitTestWithPointDrawingContextWalker.cs
- parserscommon.cs
- CompiledQuery.cs
- ExpressionConverter.cs
- HttpServerUtilityWrapper.cs
- ClientApiGenerator.cs
- EditorZone.cs
- Fonts.cs
- DateTimeFormat.cs
- WeakReferenceEnumerator.cs
- OleDbErrorCollection.cs
- AssemblyAttributes.cs
- IItemProperties.cs
- WebServiceHandlerFactory.cs
- GridProviderWrapper.cs
- ReliabilityContractAttribute.cs
- ThousandthOfEmRealDoubles.cs
- NumberFormatInfo.cs