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
- XmlLanguage.cs
- WebServiceParameterData.cs
- BufferCache.cs
- UrlMapping.cs
- ClipboardProcessor.cs
- WorkflowDefinitionDispenser.cs
- FormsAuthenticationCredentials.cs
- CharStorage.cs
- ManifestBasedResourceGroveler.cs
- PathGradientBrush.cs
- ForeignKeyFactory.cs
- GenerateTemporaryTargetAssembly.cs
- DataGridLength.cs
- XhtmlTextWriter.cs
- DataListComponentEditor.cs
- TextEditorThreadLocalStore.cs
- WindowsScrollBarBits.cs
- HtmlHistory.cs
- Triplet.cs
- __TransparentProxy.cs
- newinstructionaction.cs
- WebRequestModulesSection.cs
- XmlHierarchyData.cs
- EmptyQuery.cs
- FileInfo.cs
- SoapHeaderException.cs
- XamlToRtfParser.cs
- CriticalHandle.cs
- LoadedEvent.cs
- mediaeventshelper.cs
- JoinElimination.cs
- ProfileSection.cs
- DetailsViewInsertEventArgs.cs
- Util.cs
- SiteMapHierarchicalDataSourceView.cs
- CacheOutputQuery.cs
- MobileCategoryAttribute.cs
- UserValidatedEventArgs.cs
- ComPlusAuthorization.cs
- Queue.cs
- ReadContentAsBinaryHelper.cs
- StringTraceRecord.cs
- ProxyWebPartConnectionCollection.cs
- _TimerThread.cs
- DefinitionUpdate.cs
- Root.cs
- ExpressionHelper.cs
- RadioButtonList.cs
- FileDetails.cs
- PowerEase.cs
- SimpleWorkerRequest.cs
- ExclusiveNamedPipeTransportManager.cs
- XmlSchemaProviderAttribute.cs
- TreeViewItemAutomationPeer.cs
- Environment.cs
- Token.cs
- ContentIterators.cs
- PrivilegeNotHeldException.cs
- LingerOption.cs
- FutureFactory.cs
- TextSelectionHighlightLayer.cs
- RegexCode.cs
- ModelUIElement3D.cs
- SingleConverter.cs
- Bits.cs
- ObjectDataSourceChooseMethodsPanel.cs
- WebPartDesigner.cs
- SqlConnectionPoolProviderInfo.cs
- LocationUpdates.cs
- ControllableStoryboardAction.cs
- XPathDescendantIterator.cs
- ListComponentEditorPage.cs
- SchemaTableOptionalColumn.cs
- BindingExpression.cs
- RenderingBiasValidation.cs
- SecurityManager.cs
- ExpressionReplacer.cs
- MobileFormsAuthentication.cs
- BaseCodeDomTreeGenerator.cs
- DesignTimeDataBinding.cs
- StylusButtonCollection.cs
- XmlSchemaAnyAttribute.cs
- CompatibleComparer.cs
- ParameterToken.cs
- Int32EqualityComparer.cs
- PersonalizationStateInfo.cs
- TrackingWorkflowEventArgs.cs
- ElementHostPropertyMap.cs
- SafeIUnknown.cs
- PropertyConverter.cs
- QueryContinueDragEventArgs.cs
- HoistedLocals.cs
- NamespaceDisplay.xaml.cs
- TextWriterTraceListener.cs
- Type.cs
- MatchingStyle.cs
- ForwardPositionQuery.cs
- LongMinMaxAggregationOperator.cs
- OraclePermissionAttribute.cs
- PackageRelationshipSelector.cs