Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ResXResourceSet.cs
- MDIClient.cs
- BinaryUtilClasses.cs
- EncryptedType.cs
- File.cs
- ObjectList.cs
- ReachUIElementCollectionSerializer.cs
- UIElementIsland.cs
- WorkflowOperationContext.cs
- ZipIOLocalFileDataDescriptor.cs
- TriggerAction.cs
- ASCIIEncoding.cs
- DesignerCategoryAttribute.cs
- TabControlEvent.cs
- EntityModelSchemaGenerator.cs
- OLEDB_Util.cs
- XmlCountingReader.cs
- LinearGradientBrush.cs
- StaticFileHandler.cs
- HttpChannelBindingToken.cs
- Misc.cs
- GlobalProxySelection.cs
- SafeNativeMethods.cs
- NumericUpDown.cs
- WindowsEditBox.cs
- MessageEncoder.cs
- SessionEndingCancelEventArgs.cs
- DataViewSettingCollection.cs
- DataGridViewImageColumn.cs
- FormViewDeleteEventArgs.cs
- SqlWebEventProvider.cs
- VariantWrapper.cs
- RIPEMD160.cs
- TransactionProxy.cs
- CachedPathData.cs
- Evaluator.cs
- ASCIIEncoding.cs
- ForEach.cs
- XmlMapping.cs
- ConnectionStringsSection.cs
- CodeAttributeArgumentCollection.cs
- DataRelationPropertyDescriptor.cs
- OverlappedAsyncResult.cs
- EventMemberCodeDomSerializer.cs
- DocumentViewer.cs
- ParameterDataSourceExpression.cs
- OlePropertyStructs.cs
- ExtenderControl.cs
- HwndSubclass.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- SafeMemoryMappedViewHandle.cs
- GeometryHitTestResult.cs
- NativeObjectSecurity.cs
- TraceAsyncResult.cs
- SuppressMergeCheckAttribute.cs
- GenericUriParser.cs
- BuildProviderCollection.cs
- CallSiteBinder.cs
- JsonDeserializer.cs
- FixedHyperLink.cs
- PointLight.cs
- PropertyDescriptors.cs
- HelloOperationAsyncResult.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlCDATASection.cs
- ViewGenerator.cs
- RunClient.cs
- AppDomainUnloadedException.cs
- RecordBuilder.cs
- Encoder.cs
- PeerNameRecordCollection.cs
- FilteredXmlReader.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- GeneratedCodeAttribute.cs
- RegularExpressionValidator.cs
- SafePEFileHandle.cs
- ItemsControl.cs
- Switch.cs
- FolderBrowserDialog.cs
- StandardCommandToolStripMenuItem.cs
- ASCIIEncoding.cs
- Aggregates.cs
- ExpressionLexer.cs
- SafeSecurityHandles.cs
- XsltFunctions.cs
- PerformanceCounterManager.cs
- TableLayoutStyle.cs
- VirtualizingStackPanel.cs
- OleDbTransaction.cs
- BrowserCapabilitiesCodeGenerator.cs
- TextTreeInsertElementUndoUnit.cs
- WinFormsUtils.cs
- IRCollection.cs
- WorkflowControlEndpoint.cs
- Matrix.cs
- MouseActionValueSerializer.cs
- TrackingProfileDeserializationException.cs
- SystemFonts.cs
- RelationshipDetailsRow.cs
- CompilationLock.cs