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
- RC2CryptoServiceProvider.cs
- RadioButtonPopupAdapter.cs
- IpcChannel.cs
- FlatButtonAppearance.cs
- MainMenu.cs
- RowsCopiedEventArgs.cs
- XamlHostingSectionGroup.cs
- NavigatingCancelEventArgs.cs
- ArrayHelper.cs
- Clause.cs
- LinqDataSourceDisposeEventArgs.cs
- PlaceHolder.cs
- IndicShape.cs
- DataIdProcessor.cs
- XmlILStorageConverter.cs
- DataGridViewColumn.cs
- InkPresenterAutomationPeer.cs
- XmlChildEnumerator.cs
- precedingsibling.cs
- BitmapCache.cs
- SRGSCompiler.cs
- NotCondition.cs
- TraceContextRecord.cs
- AttachmentCollection.cs
- RemotingConfiguration.cs
- DynamicRouteExpression.cs
- _NestedSingleAsyncResult.cs
- EdmToObjectNamespaceMap.cs
- LogLogRecordEnumerator.cs
- SynthesizerStateChangedEventArgs.cs
- SqlParameterizer.cs
- PkcsUtils.cs
- HelpEvent.cs
- EventLogStatus.cs
- AttachedAnnotationChangedEventArgs.cs
- WebPartDisplayModeCollection.cs
- StyleSheet.cs
- SystemThemeKey.cs
- DoubleAnimationUsingKeyFrames.cs
- Wildcard.cs
- ProbeMatches11.cs
- EventSourceCreationData.cs
- CollectionDataContract.cs
- RunClient.cs
- ByteAnimationBase.cs
- InvalidOleVariantTypeException.cs
- MatrixCamera.cs
- MetadataSerializer.cs
- ConstNode.cs
- OutArgument.cs
- SelectionProviderWrapper.cs
- XmlSchemaComplexType.cs
- IdnElement.cs
- Geometry.cs
- ToggleButton.cs
- UnsafeNativeMethodsTablet.cs
- SmtpClient.cs
- MediaPlayerState.cs
- XNameTypeConverter.cs
- ProfileSettings.cs
- HiddenFieldDesigner.cs
- _NtlmClient.cs
- ExceptionValidationRule.cs
- DataListComponentEditor.cs
- PrintingPermission.cs
- ErrorStyle.cs
- PrimitiveSchema.cs
- TraceContext.cs
- MultiBindingExpression.cs
- XmlSchemaAll.cs
- DeferredBinaryDeserializerExtension.cs
- ArrayListCollectionBase.cs
- TransformerTypeCollection.cs
- SystemIPGlobalStatistics.cs
- TargetControlTypeCache.cs
- HttpUnhandledOperationInvoker.cs
- FixedNode.cs
- SessionViewState.cs
- CompilerGeneratedAttribute.cs
- MinimizableAttributeTypeConverter.cs
- ColorAnimationBase.cs
- DataSourceNameHandler.cs
- WebServiceData.cs
- HtmlWindowCollection.cs
- Grant.cs
- OSFeature.cs
- OdbcErrorCollection.cs
- ClientUtils.cs
- SvcMapFileLoader.cs
- DefaultPropertyAttribute.cs
- XamlPathDataSerializer.cs
- OneOfTypeConst.cs
- WebPartConnectionsConfigureVerb.cs
- DirtyTextRange.cs
- _SSPISessionCache.cs
- DataServiceSaveChangesEventArgs.cs
- TemplateBindingExpression.cs
- ProcessModuleCollection.cs
- ExpressionEditorAttribute.cs
- LoopExpression.cs