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
- ImageMetadata.cs
- Brush.cs
- EnglishPluralizationService.cs
- TypeDescriptionProvider.cs
- TransactionTraceIdentifier.cs
- ObjectSpanRewriter.cs
- PageBreakRecord.cs
- TrackPointCollection.cs
- InputLanguageProfileNotifySink.cs
- sqlser.cs
- RadioButtonList.cs
- CursorInteropHelper.cs
- ToolStripItemTextRenderEventArgs.cs
- DesignTimeVisibleAttribute.cs
- SimpleRecyclingCache.cs
- CellIdBoolean.cs
- ClientConfigurationSystem.cs
- SqlExpander.cs
- WorkflowTransactionOptions.cs
- SystemDropShadowChrome.cs
- TextEditorMouse.cs
- TypedReference.cs
- RectValueSerializer.cs
- HostedTransportConfigurationManager.cs
- ConnectionInterfaceCollection.cs
- XmlTextWriter.cs
- StylusEditingBehavior.cs
- DataGridViewButtonCell.cs
- GlyphsSerializer.cs
- CryptoProvider.cs
- ButtonField.cs
- SqlParameter.cs
- PerformanceCounterManager.cs
- WSFederationHttpSecurity.cs
- StronglyTypedResourceBuilder.cs
- Message.cs
- ActivatableWorkflowsQueryResult.cs
- CompilerCollection.cs
- LineVisual.cs
- ObjectPersistData.cs
- AutoCompleteStringCollection.cs
- RNGCryptoServiceProvider.cs
- SchemaImporterExtensionElement.cs
- GC.cs
- RenderTargetBitmap.cs
- TraceEventCache.cs
- ArgumentNullException.cs
- QueryConverter.cs
- BaseTemplateBuildProvider.cs
- LinqDataSource.cs
- XmlValidatingReaderImpl.cs
- processwaithandle.cs
- TrackingServices.cs
- Identifier.cs
- HttpListenerPrefixCollection.cs
- ProgressBarHighlightConverter.cs
- Hashtable.cs
- SQLGuid.cs
- BaseValidator.cs
- ScriptManager.cs
- SettingsPropertyIsReadOnlyException.cs
- HMACSHA512.cs
- JavaScriptSerializer.cs
- CodeMemberMethod.cs
- ReturnValue.cs
- BitmapVisualManager.cs
- MatrixTransform.cs
- BaseCollection.cs
- x509store.cs
- SessionStateItemCollection.cs
- RegexBoyerMoore.cs
- NumberFormatInfo.cs
- WebPartHeaderCloseVerb.cs
- ValidationManager.cs
- GradientBrush.cs
- LicenseManager.cs
- MetabaseSettings.cs
- InputScope.cs
- DrawingState.cs
- ErrorTolerantObjectWriter.cs
- GroupBoxAutomationPeer.cs
- WindowsEditBox.cs
- DecoderReplacementFallback.cs
- WorkflowServiceBehavior.cs
- ServicePointManager.cs
- FontStretchConverter.cs
- BrowserDefinition.cs
- RadioButtonList.cs
- COAUTHINFO.cs
- Evaluator.cs
- ResourceContainer.cs
- InvalidContentTypeException.cs
- SqlBulkCopyColumnMapping.cs
- AnnotationObservableCollection.cs
- PolicyManager.cs
- SqlFacetAttribute.cs
- ClientScriptManager.cs
- FormsAuthenticationUser.cs
- SimpleBitVector32.cs
- ParseChildrenAsPropertiesAttribute.cs