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
- ResourceDictionary.cs
- NavigatorInput.cs
- QueryOutputWriter.cs
- DesignDataSource.cs
- BounceEase.cs
- DataRecordInfo.cs
- TextTreeFixupNode.cs
- RuntimeCompatibilityAttribute.cs
- BaseParagraph.cs
- ForeignKeyConstraint.cs
- PointHitTestParameters.cs
- ScriptResourceAttribute.cs
- TreeViewCancelEvent.cs
- Flowchart.cs
- HttpClientCertificate.cs
- InvokeHandlers.cs
- PrintPageEvent.cs
- ServiceChannelFactory.cs
- Stroke2.cs
- PostBackTrigger.cs
- SystemFonts.cs
- RecognizerStateChangedEventArgs.cs
- WebBrowserBase.cs
- VerificationException.cs
- WeakEventTable.cs
- UserNameSecurityTokenProvider.cs
- DropDownList.cs
- SRDisplayNameAttribute.cs
- XDeferredAxisSource.cs
- InfiniteTimeSpanConverter.cs
- ConditionalBranch.cs
- MetadataFile.cs
- DateTimeConverter2.cs
- XmlChildNodes.cs
- AttributeParameterInfo.cs
- Context.cs
- UrlUtility.cs
- CapabilitiesSection.cs
- CatalogZoneBase.cs
- ClockGroup.cs
- MenuTracker.cs
- TextTabProperties.cs
- ObjectContext.cs
- TreeBuilderBamlTranslator.cs
- LogExtent.cs
- CharEntityEncoderFallback.cs
- HMACMD5.cs
- ProjectionPruner.cs
- DeleteHelper.cs
- FixedTextPointer.cs
- CompiledQuery.cs
- SimpleWorkerRequest.cs
- WindowInteractionStateTracker.cs
- ActivityCollectionMarkupSerializer.cs
- BeginEvent.cs
- AutoGeneratedFieldProperties.cs
- _IPv6Address.cs
- BulletedList.cs
- TypeBinaryExpression.cs
- UIElement.cs
- TabRenderer.cs
- DotExpr.cs
- Point.cs
- VectorCollectionValueSerializer.cs
- DefaultClaimSet.cs
- ServiceCredentialsElement.cs
- BaseCollection.cs
- MultiBindingExpression.cs
- FormsAuthenticationEventArgs.cs
- CompilerGlobalScopeAttribute.cs
- DataGridViewColumnCollectionEditor.cs
- ProgressChangedEventArgs.cs
- RowUpdatingEventArgs.cs
- ApplicationTrust.cs
- Application.cs
- CommandBinding.cs
- DiscoveryDocumentSerializer.cs
- InlineUIContainer.cs
- DurationConverter.cs
- NetworkStream.cs
- PermissionSetEnumerator.cs
- SimpleTextLine.cs
- TargetControlTypeCache.cs
- StateBag.cs
- SessionIDManager.cs
- ExecutionContext.cs
- SimplePropertyEntry.cs
- Rotation3DAnimationUsingKeyFrames.cs
- CompleteWizardStep.cs
- RawStylusInputCustomDataList.cs
- DialogResultConverter.cs
- BooleanAnimationUsingKeyFrames.cs
- ByteStream.cs
- DBSchemaRow.cs
- GestureRecognizer.cs
- DBDataPermissionAttribute.cs
- ObjectDataSourceMethodEventArgs.cs
- SecurityElement.cs
- JsonServiceDocumentSerializer.cs
- AndMessageFilterTable.cs