Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / DefaultMemberAttribute.cs / 1305376 / 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; [Serializable] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)] [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; [Serializable] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)] [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
- Point3DAnimationBase.cs
- NameValueSectionHandler.cs
- ColorEditor.cs
- _FtpDataStream.cs
- DataGridTextBox.cs
- StdValidatorsAndConverters.cs
- InputBuffer.cs
- EntityProxyFactory.cs
- SoapObjectReader.cs
- ObjectStateManager.cs
- ClientSettingsStore.cs
- RowsCopiedEventArgs.cs
- XmlWrappingReader.cs
- DeflateStreamAsyncResult.cs
- ComponentRenameEvent.cs
- Delegate.cs
- SignerInfo.cs
- XmlAtomicValue.cs
- SymbolMethod.cs
- TextPointer.cs
- Tracer.cs
- EmissiveMaterial.cs
- transactioncontext.cs
- ReadingWritingEntityEventArgs.cs
- XmlNodeReader.cs
- clipboard.cs
- RenderTargetBitmap.cs
- MonitorWrapper.cs
- XmlSchemaElement.cs
- ControlBuilder.cs
- SqlProcedureAttribute.cs
- ReadOnlyCollection.cs
- BitmapScalingModeValidation.cs
- ScrollItemPatternIdentifiers.cs
- ToolBar.cs
- UserControlAutomationPeer.cs
- Substitution.cs
- HttpAsyncResult.cs
- DoubleCollection.cs
- Substitution.cs
- RemotingServices.cs
- TextFormatterImp.cs
- ConfigsHelper.cs
- GridEntry.cs
- EdmComplexTypeAttribute.cs
- DynamicDataResources.Designer.cs
- EncodingInfo.cs
- XmlDataDocument.cs
- DataServiceRequestException.cs
- UiaCoreTypesApi.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ServiceRouteHandler.cs
- DataTransferEventArgs.cs
- ItemCheckEvent.cs
- CommandEventArgs.cs
- Win32KeyboardDevice.cs
- DictionaryEntry.cs
- DBBindings.cs
- WmpBitmapEncoder.cs
- FontNamesConverter.cs
- VisualStyleElement.cs
- OleDbParameterCollection.cs
- TextAdaptor.cs
- SessionStateItemCollection.cs
- Animatable.cs
- SiteMapSection.cs
- LoginView.cs
- EventBindingService.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- DataRelation.cs
- MergeFailedEvent.cs
- StatusBarItemAutomationPeer.cs
- PointAnimationUsingPath.cs
- PassportAuthenticationEventArgs.cs
- BulletChrome.cs
- SHA512.cs
- AssignDesigner.xaml.cs
- Lazy.cs
- SamlSerializer.cs
- InternalControlCollection.cs
- XpsResource.cs
- PointCollectionConverter.cs
- Rotation3DKeyFrameCollection.cs
- StateDesigner.LayoutSelectionGlyph.cs
- DesignOnlyAttribute.cs
- PageBreakRecord.cs
- IgnorePropertiesAttribute.cs
- OleDbWrapper.cs
- EUCJPEncoding.cs
- EntityViewGenerationAttribute.cs
- FigureParaClient.cs
- ElementInit.cs
- ToolTipAutomationPeer.cs
- ClaimComparer.cs
- columnmapkeybuilder.cs
- HtmlInputButton.cs
- FilteredXmlReader.cs
- SchemaAttDef.cs
- CategoryGridEntry.cs
- CodeTypeMemberCollection.cs