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
- CompilerGlobalScopeAttribute.cs
- GridView.cs
- LockCookie.cs
- Item.cs
- SqlGatherProducedAliases.cs
- XmlILIndex.cs
- ScriptingRoleServiceSection.cs
- Empty.cs
- CompilerTypeWithParams.cs
- ContentElement.cs
- XamlDesignerSerializationManager.cs
- MachineKeyConverter.cs
- BulletedList.cs
- Vector3D.cs
- ReadOnlyDataSourceView.cs
- PageCodeDomTreeGenerator.cs
- HybridDictionary.cs
- EditorAttribute.cs
- IndexedString.cs
- TdsParserStateObject.cs
- SetterBase.cs
- TemplateBindingExpression.cs
- LinkTarget.cs
- FunctionNode.cs
- XPathItem.cs
- _LocalDataStoreMgr.cs
- Quaternion.cs
- Vector3DConverter.cs
- SmiMetaDataProperty.cs
- ModulesEntry.cs
- SettingsContext.cs
- DataProtection.cs
- propertytag.cs
- FontSizeConverter.cs
- WebServiceReceive.cs
- OutputScope.cs
- DataGridViewColumnEventArgs.cs
- OneWayElement.cs
- SdlChannelSink.cs
- StorageRoot.cs
- MenuDesigner.cs
- Triplet.cs
- PageClientProxyGenerator.cs
- CLSCompliantAttribute.cs
- HandlerMappingMemo.cs
- ZipIOBlockManager.cs
- PartBasedPackageProperties.cs
- SqlDataSourceConfigureSelectPanel.cs
- SchemaMapping.cs
- SqlInternalConnectionSmi.cs
- PkcsUtils.cs
- StorageInfo.cs
- IItemProperties.cs
- SrgsElementList.cs
- ACE.cs
- SessionStateContainer.cs
- NativeMethods.cs
- VisualTarget.cs
- DocumentViewerBaseAutomationPeer.cs
- FontCollection.cs
- CommandTreeTypeHelper.cs
- SizeValueSerializer.cs
- DnsPermission.cs
- BaseProcessor.cs
- Assert.cs
- DashStyle.cs
- ListDesigner.cs
- MessageDecoder.cs
- ItemList.cs
- TableItemPatternIdentifiers.cs
- SequenceRangeCollection.cs
- ScrollChrome.cs
- DescriptionAttribute.cs
- DateTimeAutomationPeer.cs
- Command.cs
- DigitalSignatureProvider.cs
- SoapReflectionImporter.cs
- AuthStoreRoleProvider.cs
- TimeSpanConverter.cs
- ColumnCollection.cs
- HeaderCollection.cs
- IsolatedStorageFilePermission.cs
- DataGrid.cs
- BitmapMetadataBlob.cs
- StackSpiller.Temps.cs
- ProvidersHelper.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- UrlMappingsModule.cs
- XamlReader.cs
- ThreadStaticAttribute.cs
- FixedDocument.cs
- StylusCaptureWithinProperty.cs
- TextMetrics.cs
- Paragraph.cs
- ExpressionBuilder.cs
- DataSvcMapFile.cs
- UTF8Encoding.cs
- ExtensionDataReader.cs
- BindingBase.cs
- ListViewInsertionMark.cs