Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Stroke2.cs
- XmlWhitespace.cs
- Application.cs
- ArgumentOutOfRangeException.cs
- SqlClientMetaDataCollectionNames.cs
- UserControlParser.cs
- ModifierKeysValueSerializer.cs
- ContainerParagraph.cs
- EncoderNLS.cs
- GCHandleCookieTable.cs
- EtwProvider.cs
- ServiceNameCollection.cs
- SmtpNtlmAuthenticationModule.cs
- TraceSection.cs
- DependentTransaction.cs
- DoubleConverter.cs
- RotateTransform3D.cs
- BinaryMessageFormatter.cs
- PropertyPath.cs
- IsolatedStorageFile.cs
- FixedSOMGroup.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- GraphicsContainer.cs
- NameValueSectionHandler.cs
- XmlSerializerOperationGenerator.cs
- MenuStrip.cs
- TableSectionStyle.cs
- XmlWriterDelegator.cs
- ConnectionConsumerAttribute.cs
- localization.cs
- NumberFunctions.cs
- BasicExpressionVisitor.cs
- ResourceProviderFactory.cs
- ButtonPopupAdapter.cs
- ListViewSortEventArgs.cs
- PeerInvitationResponse.cs
- ExceptionAggregator.cs
- DbParameterCollection.cs
- Run.cs
- GeometryModel3D.cs
- CodeIterationStatement.cs
- CompilerWrapper.cs
- IntAverageAggregationOperator.cs
- SafeRegistryHandle.cs
- MessageBox.cs
- SBCSCodePageEncoding.cs
- DocumentSchemaValidator.cs
- PropertyPathWorker.cs
- ErrorInfoXmlDocument.cs
- XmlDataProvider.cs
- mediapermission.cs
- columnmapfactory.cs
- DesignerGenericWebPart.cs
- ArrangedElement.cs
- CannotUnloadAppDomainException.cs
- SubstitutionList.cs
- TextParagraphView.cs
- PtsHelper.cs
- Light.cs
- BitStack.cs
- XpsSerializationException.cs
- WindowsPrincipal.cs
- SettingsAttributes.cs
- RSACryptoServiceProvider.cs
- PrimitiveType.cs
- MulticastOption.cs
- SectionVisual.cs
- SerialPinChanges.cs
- DescriptionAttribute.cs
- AmbientLight.cs
- NavigationFailedEventArgs.cs
- OracleInfoMessageEventArgs.cs
- DataControlField.cs
- SqlRewriteScalarSubqueries.cs
- TextEditorSpelling.cs
- SecurityNegotiationException.cs
- TextSelection.cs
- ManagedWndProcTracker.cs
- PartialTrustVisibleAssembliesSection.cs
- RowBinding.cs
- GlyphsSerializer.cs
- ResXResourceSet.cs
- EntityContainerEntitySetDefiningQuery.cs
- StylusPointPropertyUnit.cs
- PropertyConverter.cs
- EdmTypeAttribute.cs
- _BasicClient.cs
- PipeException.cs
- Section.cs
- CompoundFileDeflateTransform.cs
- ToolStripItemImageRenderEventArgs.cs
- SmtpException.cs
- HttpDebugHandler.cs
- _FtpDataStream.cs
- TemplatedControlDesigner.cs
- DiagnosticTrace.cs
- HGlobalSafeHandle.cs
- PolicyException.cs
- DelegateCompletionCallbackWrapper.cs
- SourceElementsCollection.cs