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
- MenuTracker.cs
- XmlWrappingReader.cs
- SolidColorBrush.cs
- XsltLibrary.cs
- HideDisabledControlAdapter.cs
- RelationshipEndMember.cs
- StringAnimationBase.cs
- TextBox.cs
- ContainerUIElement3D.cs
- sqlinternaltransaction.cs
- WebPartManagerDesigner.cs
- DataSourceHelper.cs
- _AutoWebProxyScriptEngine.cs
- CompatibleComparer.cs
- Table.cs
- RelationshipWrapper.cs
- Executor.cs
- Exceptions.cs
- AndCondition.cs
- XamlVector3DCollectionSerializer.cs
- ChannelManager.cs
- WebPartConnectVerb.cs
- DoubleLinkListEnumerator.cs
- EpmContentDeSerializer.cs
- EtwTrackingBehaviorElement.cs
- ContentType.cs
- SamlConstants.cs
- DataServiceBehavior.cs
- Wildcard.cs
- LockingPersistenceProvider.cs
- unsafenativemethodstextservices.cs
- InstanceDataCollection.cs
- VariableQuery.cs
- InputQueue.cs
- LocalizabilityAttribute.cs
- ServiceContractGenerationContext.cs
- ReliableInputConnection.cs
- OledbConnectionStringbuilder.cs
- SoapSchemaMember.cs
- OdbcStatementHandle.cs
- ProviderException.cs
- Table.cs
- securestring.cs
- UiaCoreTypesApi.cs
- GroupBox.cs
- RenderData.cs
- ValueConversionAttribute.cs
- BaseUriHelper.cs
- DoubleKeyFrameCollection.cs
- Transform3DCollection.cs
- HtmlEmptyTagControlBuilder.cs
- XamlWriter.cs
- XmlWhitespace.cs
- PeerApplicationLaunchInfo.cs
- Vector.cs
- CapabilitiesRule.cs
- NativeCppClassAttribute.cs
- KeyValueInternalCollection.cs
- MarshalByValueComponent.cs
- DependencyPropertyConverter.cs
- ModelFunctionTypeElement.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ClonableStack.cs
- ObjectDataSourceEventArgs.cs
- DBCommand.cs
- SqlDataSourceFilteringEventArgs.cs
- DropDownButton.cs
- LogicalTreeHelper.cs
- DoubleConverter.cs
- ValueQuery.cs
- SHA384CryptoServiceProvider.cs
- MimeXmlImporter.cs
- DataGridViewTextBoxEditingControl.cs
- LineGeometry.cs
- QueryAccessibilityHelpEvent.cs
- QilExpression.cs
- StructuralType.cs
- columnmapfactory.cs
- wgx_exports.cs
- Activation.cs
- SqlDataSource.cs
- EntityContainerAssociationSet.cs
- ProfilePropertySettings.cs
- HttpCachePolicyElement.cs
- TrackingCondition.cs
- DataGridViewCell.cs
- Rect3DValueSerializer.cs
- FilteredSchemaElementLookUpTable.cs
- CodeEntryPointMethod.cs
- MarkerProperties.cs
- OrderPreservingPipeliningMergeHelper.cs
- SafeArrayRankMismatchException.cs
- CapabilitiesState.cs
- TiffBitmapEncoder.cs
- EntityRecordInfo.cs
- StopRoutingHandler.cs
- HttpPostedFile.cs
- GlyphCache.cs
- ApplicationId.cs
- TextTreeInsertElementUndoUnit.cs