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
- baseshape.cs
- Stream.cs
- MediaContext.cs
- SpoolingTask.cs
- Rect3D.cs
- TimeZone.cs
- XmlAttributeAttribute.cs
- DeviceContext.cs
- QuaternionIndependentAnimationStorage.cs
- FileEnumerator.cs
- EdmFunctionAttribute.cs
- ListControl.cs
- SqlServer2KCompatibilityAnnotation.cs
- MemberMemberBinding.cs
- ValueType.cs
- EntitySet.cs
- RecordBuilder.cs
- ColorConvertedBitmap.cs
- DPTypeDescriptorContext.cs
- InstanceOwnerException.cs
- DataGridViewCheckBoxCell.cs
- RelatedEnd.cs
- ContextInformation.cs
- SoapElementAttribute.cs
- DataSetUtil.cs
- WindowsScroll.cs
- RSAPKCS1SignatureFormatter.cs
- WebMethodAttribute.cs
- EncoderReplacementFallback.cs
- TaiwanLunisolarCalendar.cs
- Parameter.cs
- HideDisabledControlAdapter.cs
- NameObjectCollectionBase.cs
- ConnectionProviderAttribute.cs
- BaseDataList.cs
- CommandManager.cs
- ServiceModelTimeSpanValidator.cs
- ArrayTypeMismatchException.cs
- EndPoint.cs
- EastAsianLunisolarCalendar.cs
- FirewallWrapper.cs
- PropertyEmitter.cs
- ConnectionStringSettingsCollection.cs
- LinkTarget.cs
- PassportAuthentication.cs
- CodeSnippetCompileUnit.cs
- TransactionFlowBindingElementImporter.cs
- PaperSource.cs
- OperatingSystem.cs
- DescendentsWalkerBase.cs
- BooleanConverter.cs
- DomainConstraint.cs
- SHA256.cs
- ExceptionRoutedEventArgs.cs
- DesignBindingConverter.cs
- MembershipUser.cs
- TextElementAutomationPeer.cs
- ReachUIElementCollectionSerializerAsync.cs
- SimpleRecyclingCache.cs
- ButtonFieldBase.cs
- SyntaxCheck.cs
- ClientRolePrincipal.cs
- CurrentChangedEventManager.cs
- ListParagraph.cs
- Rect.cs
- DashStyles.cs
- FaultFormatter.cs
- HitTestFilterBehavior.cs
- UIHelper.cs
- ColorTypeConverter.cs
- TraceListeners.cs
- FilePrompt.cs
- CodeArgumentReferenceExpression.cs
- GeneralTransform3DGroup.cs
- embossbitmapeffect.cs
- _OverlappedAsyncResult.cs
- ClickablePoint.cs
- TraceContextEventArgs.cs
- Quad.cs
- CompareInfo.cs
- HandlerFactoryWrapper.cs
- InstanceData.cs
- HMACSHA384.cs
- NameSpaceExtractor.cs
- FormsAuthenticationConfiguration.cs
- ValueUnavailableException.cs
- BamlRecordReader.cs
- ColorAnimationBase.cs
- TextTreeObjectNode.cs
- DataGridDesigner.cs
- DataBindingCollectionEditor.cs
- PresentationTraceSources.cs
- AvtEvent.cs
- NestPullup.cs
- NamespaceQuery.cs
- BevelBitmapEffect.cs
- WindowsTokenRoleProvider.cs
- AutoResizedEvent.cs
- OrCondition.cs
- EmptyStringExpandableObjectConverter.cs