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
- peersecuritysettings.cs
- ApplicationBuildProvider.cs
- IPHostEntry.cs
- ManagedFilter.cs
- Brush.cs
- FormViewPageEventArgs.cs
- SqlTopReducer.cs
- RepeatBehaviorConverter.cs
- PresentationUIStyleResources.cs
- TraceSection.cs
- SqlCaseSimplifier.cs
- GridViewColumn.cs
- MetadataException.cs
- _Semaphore.cs
- CultureInfoConverter.cs
- ProfileSettingsCollection.cs
- TabControl.cs
- URLAttribute.cs
- DataMisalignedException.cs
- VisualCollection.cs
- SpoolingTask.cs
- SchemaCollectionPreprocessor.cs
- OperationContextScope.cs
- CodeDOMProvider.cs
- SpinWait.cs
- LiteralText.cs
- ListBoxItemAutomationPeer.cs
- documentsequencetextview.cs
- IndependentAnimationStorage.cs
- SqlClientFactory.cs
- FileVersion.cs
- ItemsPresenter.cs
- PolicyChain.cs
- Converter.cs
- AssociatedControlConverter.cs
- PointConverter.cs
- PenThreadWorker.cs
- DrawingContextWalker.cs
- SymbolPair.cs
- TabItemAutomationPeer.cs
- TypeAccessException.cs
- SocketAddress.cs
- Deserializer.cs
- XPathNavigator.cs
- EdmValidator.cs
- ReflectTypeDescriptionProvider.cs
- safelink.cs
- ScriptRegistrationManager.cs
- DocumentGridContextMenu.cs
- CodeDOMUtility.cs
- MulticastNotSupportedException.cs
- HttpDebugHandler.cs
- SQLResource.cs
- ReverseQueryOperator.cs
- MachineSettingsSection.cs
- IdnElement.cs
- Selection.cs
- XmlSchemaAnnotated.cs
- CultureSpecificCharacterBufferRange.cs
- EntityDesignerBuildProvider.cs
- SourceFilter.cs
- ServiceSettingsResponseInfo.cs
- COM2FontConverter.cs
- ChangePasswordDesigner.cs
- QueryResponse.cs
- EdmMember.cs
- TagMapCollection.cs
- SyndicationItemFormatter.cs
- CodeGen.cs
- IQueryable.cs
- CmsInterop.cs
- AsyncResult.cs
- ObjectDataSource.cs
- GrammarBuilderPhrase.cs
- WindowsStatusBar.cs
- StyleConverter.cs
- RecognizerStateChangedEventArgs.cs
- GenericFlowSwitchHelper.cs
- DrawToolTipEventArgs.cs
- CompiledRegexRunner.cs
- SqlParameterCollection.cs
- MessagePartSpecification.cs
- FlowLayout.cs
- BreakRecordTable.cs
- FileLevelControlBuilderAttribute.cs
- CaseExpr.cs
- SafeLocalMemHandle.cs
- System.Data.OracleClient_BID.cs
- ReadOnlyActivityGlyph.cs
- DataSourceXmlAttributeAttribute.cs
- ADConnectionHelper.cs
- SwitchDesigner.xaml.cs
- CompositeKey.cs
- BookmarkEventArgs.cs
- DateTimeOffset.cs
- SamlDelegatingWriter.cs
- BindingListCollectionView.cs
- CharUnicodeInfo.cs
- MediaCommands.cs
- WebScriptEnablingElement.cs