Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PeerToPeerException.cs
- EventMappingSettingsCollection.cs
- DesignerTextViewAdapter.cs
- Margins.cs
- StorageModelBuildProvider.cs
- HealthMonitoringSectionHelper.cs
- DataViewSettingCollection.cs
- DbConnectionFactory.cs
- GeneralTransformCollection.cs
- XmlAttributeProperties.cs
- OleDbTransaction.cs
- Track.cs
- FaultHandlingFilter.cs
- DataGridViewComboBoxCell.cs
- TextRangeProviderWrapper.cs
- BooleanFacetDescriptionElement.cs
- OciEnlistContext.cs
- HttpModuleCollection.cs
- CodeCommentStatement.cs
- DataBoundLiteralControl.cs
- BitVector32.cs
- XmlSchemaIdentityConstraint.cs
- SiteMapPath.cs
- WebContentFormatHelper.cs
- TypeInitializationException.cs
- WsrmFault.cs
- NamespaceList.cs
- XdrBuilder.cs
- MapPathBasedVirtualPathProvider.cs
- SemaphoreFullException.cs
- ReplacementText.cs
- PrintingPermissionAttribute.cs
- OleDbError.cs
- ViewEventArgs.cs
- SwitchLevelAttribute.cs
- SqlParameter.cs
- QuaternionAnimation.cs
- DataGridColumnsPage.cs
- CompilerHelpers.cs
- String.cs
- ExtensionDataObject.cs
- StartUpEventArgs.cs
- ConversionContext.cs
- InternalPermissions.cs
- DataGridViewColumnStateChangedEventArgs.cs
- EventlogProvider.cs
- XmlWrappingWriter.cs
- UniqueIdentifierService.cs
- MethodBody.cs
- StatusBarItemAutomationPeer.cs
- ColumnMapVisitor.cs
- TemplateKeyConverter.cs
- Logging.cs
- RegexStringValidatorAttribute.cs
- DecoderBestFitFallback.cs
- X509UI.cs
- BulletedListEventArgs.cs
- ColorConverter.cs
- MinimizableAttributeTypeConverter.cs
- CngAlgorithm.cs
- AdPostCacheSubstitution.cs
- MachineSettingsSection.cs
- DataGridView.cs
- TypeUnloadedException.cs
- TagPrefixInfo.cs
- DataContractSet.cs
- BidirectionalDictionary.cs
- BatchParser.cs
- MetadataCollection.cs
- ManagementEventWatcher.cs
- QueueProcessor.cs
- TextDecorationLocationValidation.cs
- XmlDataProvider.cs
- Dump.cs
- WindowsRegion.cs
- MemoryMappedFile.cs
- AttributeEmitter.cs
- VisualStates.cs
- LambdaCompiler.Expressions.cs
- externdll.cs
- AppSettingsExpressionEditor.cs
- StrokeNodeData.cs
- LineBreak.cs
- DetailsViewCommandEventArgs.cs
- SQLDateTime.cs
- ProxyHwnd.cs
- ArrayListCollectionBase.cs
- CalendarTable.cs
- Classification.cs
- XmlSchemaSimpleTypeUnion.cs
- CompiledRegexRunnerFactory.cs
- OleDbConnectionFactory.cs
- CellQuery.cs
- LingerOption.cs
- Symbol.cs
- CssTextWriter.cs
- sqlpipe.cs
- TargetException.cs
- FieldBuilder.cs
- RegexReplacement.cs