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
- Int32Converter.cs
- HttpModuleCollection.cs
- RepeaterItemCollection.cs
- BmpBitmapEncoder.cs
- DispatcherSynchronizationContext.cs
- ExtensionDataObject.cs
- ComponentResourceManager.cs
- XmlNamespaceManager.cs
- MemoryRecordBuffer.cs
- OptionUsage.cs
- DesignerRegion.cs
- HiddenFieldPageStatePersister.cs
- ListBoxItemAutomationPeer.cs
- ColorConverter.cs
- BitStream.cs
- AbandonedMutexException.cs
- JsonUriDataContract.cs
- WindowsFormsSynchronizationContext.cs
- ErrorCodes.cs
- UncommonField.cs
- DataSourceCache.cs
- Int64KeyFrameCollection.cs
- InternalCache.cs
- FixedStringLookup.cs
- HtmlFormWrapper.cs
- path.cs
- ThreadNeutralSemaphore.cs
- NavigateEvent.cs
- ConstructorNeedsTagAttribute.cs
- Stacktrace.cs
- COM2ColorConverter.cs
- SystemException.cs
- StateChangeEvent.cs
- CodeBlockBuilder.cs
- Opcode.cs
- OdbcParameter.cs
- ExtenderControl.cs
- FlowLayoutSettings.cs
- TrackingProfileCache.cs
- TraversalRequest.cs
- TextServicesCompartmentContext.cs
- assertwrapper.cs
- AlternateView.cs
- DataGridViewComboBoxCell.cs
- BinaryFormatterWriter.cs
- WindowsBrush.cs
- EDesignUtil.cs
- GridLength.cs
- BindingGroup.cs
- AdornedElementPlaceholder.cs
- StructuredTypeInfo.cs
- ManipulationCompletedEventArgs.cs
- ClientSideProviderDescription.cs
- ResourceSetExpression.cs
- WizardStepBase.cs
- SoapRpcServiceAttribute.cs
- CheckBoxRenderer.cs
- DataColumnChangeEvent.cs
- SqlDataReaderSmi.cs
- Pens.cs
- SqlDataSourceFilteringEventArgs.cs
- DrawingContext.cs
- dbenumerator.cs
- FormatVersion.cs
- ButtonRenderer.cs
- CryptoApi.cs
- DoubleLink.cs
- Style.cs
- VoiceSynthesis.cs
- Set.cs
- Bits.cs
- AuthenticationException.cs
- StoryFragments.cs
- XmlHierarchicalDataSourceView.cs
- ProcessModule.cs
- PropertySourceInfo.cs
- ChineseLunisolarCalendar.cs
- MSHTMLHost.cs
- DuplicateWaitObjectException.cs
- InputScopeConverter.cs
- DomNameTable.cs
- MsmqPoisonMessageException.cs
- ComplusEndpointConfigContainer.cs
- Model3D.cs
- DataServiceRequestException.cs
- SimpleMailWebEventProvider.cs
- wpf-etw.cs
- AbstractDataSvcMapFileLoader.cs
- DownloadProgressEventArgs.cs
- ComboBoxItem.cs
- SqlCrossApplyToCrossJoin.cs
- PropertyMap.cs
- __Filters.cs
- TimelineCollection.cs
- SizeValueSerializer.cs
- QueryRewriter.cs
- WindowInteropHelper.cs
- SplayTreeNode.cs
- TextSyndicationContentKindHelper.cs
- SaveFileDialog.cs