Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XPathDocumentBuilder.cs
- TypeBinaryExpression.cs
- CatalogZoneBase.cs
- DbgUtil.cs
- KnownBoxes.cs
- FormViewInsertedEventArgs.cs
- OptionUsage.cs
- ApplicationBuildProvider.cs
- SimpleHandlerFactory.cs
- URIFormatException.cs
- StylusOverProperty.cs
- UiaCoreProviderApi.cs
- Aggregates.cs
- ScaleTransform3D.cs
- PrimitiveOperationFormatter.cs
- ConfigXmlReader.cs
- WaitForChangedResult.cs
- SQLDouble.cs
- BaseCodeDomTreeGenerator.cs
- Compiler.cs
- ToolStripDropDownClosingEventArgs.cs
- ToolStripItemRenderEventArgs.cs
- LightweightCodeGenerator.cs
- HtmlHistory.cs
- ToolBar.cs
- PreviewPrintController.cs
- LabelEditEvent.cs
- DataAdapter.cs
- LoginUtil.cs
- FixedSOMTableCell.cs
- XPathParser.cs
- Nodes.cs
- Merger.cs
- BackEase.cs
- RijndaelManagedTransform.cs
- COM2TypeInfoProcessor.cs
- behaviorssection.cs
- ObjectStateEntry.cs
- EntryIndex.cs
- SynchronizedDispatch.cs
- UrlMappingCollection.cs
- ResolveNextArgumentWorkItem.cs
- SoapMessage.cs
- WebPartAddingEventArgs.cs
- HierarchicalDataSourceIDConverter.cs
- XmlMemberMapping.cs
- HexParser.cs
- TextBox.cs
- HttpRuntimeSection.cs
- DataReaderContainer.cs
- RsaSecurityTokenAuthenticator.cs
- Label.cs
- WebPartAuthorizationEventArgs.cs
- DataControlReferenceCollection.cs
- ResourceContainer.cs
- CompositeDesignerAccessibleObject.cs
- DbgCompiler.cs
- HttpChannelBindingToken.cs
- MatrixAnimationBase.cs
- _NegoStream.cs
- StylusOverProperty.cs
- OrderedDictionary.cs
- OdbcConnectionFactory.cs
- SoapConverter.cs
- SystemResourceKey.cs
- HttpResponseHeader.cs
- DataServiceQueryOfT.cs
- FacetValues.cs
- ProcessInfo.cs
- SerialPinChanges.cs
- RuntimeResourceSet.cs
- ValueUtilsSmi.cs
- WebPartZoneCollection.cs
- RowToParametersTransformer.cs
- AccessDataSourceView.cs
- DataGridRelationshipRow.cs
- XmlToDatasetMap.cs
- Transform.cs
- FileUtil.cs
- EntityCollection.cs
- ButtonChrome.cs
- VirtualDirectoryMapping.cs
- XmlAttributeHolder.cs
- SqlServer2KCompatibilityCheck.cs
- MediaScriptCommandRoutedEventArgs.cs
- TagMapCollection.cs
- ContourSegment.cs
- HealthMonitoringSectionHelper.cs
- TextCompositionManager.cs
- TextRenderer.cs
- EtwTrace.cs
- DateTimeParse.cs
- DateTimeConverter2.cs
- FormParameter.cs
- FileVersion.cs
- StructuralObject.cs
- CodeCastExpression.cs
- DataSourceControl.cs
- ParserContext.cs
- DataGridTextBox.cs