Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- AutomationElementCollection.cs
- CursorConverter.cs
- ServiceCredentials.cs
- WindowsScroll.cs
- DBNull.cs
- DataGridItemEventArgs.cs
- FacetDescription.cs
- LogExtent.cs
- Size3D.cs
- BuildManagerHost.cs
- PersistenceIOParticipant.cs
- NegotiationTokenAuthenticatorStateCache.cs
- CompilationLock.cs
- SecurityHeaderElementInferenceEngine.cs
- ParameterCollection.cs
- Italic.cs
- PictureBox.cs
- OdbcCommand.cs
- ObjectCloneHelper.cs
- ObjectNotFoundException.cs
- ContainerParagraph.cs
- VariableQuery.cs
- TableLayoutSettings.cs
- BamlResourceSerializer.cs
- MessageProtectionOrder.cs
- TargetControlTypeAttribute.cs
- ByValueEqualityComparer.cs
- XPathNodeHelper.cs
- DataGridViewTextBoxCell.cs
- ModelItemImpl.cs
- CheckedPointers.cs
- LogPolicy.cs
- HostingPreferredMapPath.cs
- EnumMember.cs
- unitconverter.cs
- KeyPressEvent.cs
- WorkflowViewElement.cs
- ContentDisposition.cs
- _NegoState.cs
- DataControlButton.cs
- LZCodec.cs
- ProcessHostMapPath.cs
- TimeSpanConverter.cs
- RemotingHelper.cs
- TextSelectionHighlightLayer.cs
- DeviceSpecificDesigner.cs
- MaskedTextBox.cs
- assemblycache.cs
- TypeConverterHelper.cs
- CommandPlan.cs
- SamlConstants.cs
- ConfigurationElementCollection.cs
- TypeBrowserDialog.cs
- EntitySqlException.cs
- SecurityTokenSerializer.cs
- ScrollContentPresenter.cs
- PropertyDescriptorCollection.cs
- WmlTextViewAdapter.cs
- DoubleCollection.cs
- EmbeddedObject.cs
- XmlName.cs
- XamlPointCollectionSerializer.cs
- CfgArc.cs
- AuthenticatedStream.cs
- TemplateComponentConnector.cs
- TemplateContent.cs
- StrokeNodeData.cs
- Math.cs
- ObjectDataSourceSelectingEventArgs.cs
- CTreeGenerator.cs
- MimeTypeAttribute.cs
- SqlSelectStatement.cs
- SimpleWebHandlerParser.cs
- BooleanExpr.cs
- TagElement.cs
- SmtpSection.cs
- ADMembershipUser.cs
- SolidColorBrush.cs
- CLRBindingWorker.cs
- AuthorizationRuleCollection.cs
- OleDbParameterCollection.cs
- FunctionUpdateCommand.cs
- ExtractedStateEntry.cs
- securitycriticaldataClass.cs
- BmpBitmapDecoder.cs
- ExpandSegmentCollection.cs
- SqlGenericUtil.cs
- BlurBitmapEffect.cs
- ScalarType.cs
- DtrList.cs
- RC2CryptoServiceProvider.cs
- AutomationIdentifier.cs
- baseaxisquery.cs
- DirectoryRedirect.cs
- RestHandlerFactory.cs
- ExtractorMetadata.cs
- HttpStreamMessageEncoderFactory.cs
- HostingEnvironmentException.cs
- UTF7Encoding.cs
- Point3DKeyFrameCollection.cs