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
- ConfigXmlSignificantWhitespace.cs
- FileSystemWatcher.cs
- XmlSerializerNamespaces.cs
- ScrollChrome.cs
- VisualStyleTypesAndProperties.cs
- Label.cs
- CodeArrayCreateExpression.cs
- TreeWalkHelper.cs
- EntityStoreSchemaGenerator.cs
- IntSecurity.cs
- EntitySqlQueryBuilder.cs
- BitSet.cs
- DES.cs
- UndirectedGraph.cs
- xmlformatgeneratorstatics.cs
- XsltConvert.cs
- WebPartVerb.cs
- DynamicActivityXamlReader.cs
- System.Data_BID.cs
- EntityTransaction.cs
- GridViewEditEventArgs.cs
- UIPermission.cs
- QueryCacheManager.cs
- ListViewUpdateEventArgs.cs
- DefaultHttpHandler.cs
- SoapProcessingBehavior.cs
- UIAgentAsyncEndRequest.cs
- WebHttpBinding.cs
- SortFieldComparer.cs
- ByteFacetDescriptionElement.cs
- MonikerHelper.cs
- EntityDataSourceDataSelectionPanel.cs
- SignatureGenerator.cs
- TextAdaptor.cs
- ArgumentNullException.cs
- SymbolPair.cs
- XmlSchemaElement.cs
- Geometry3D.cs
- VerificationAttribute.cs
- PermissionAttributes.cs
- DataGridViewCell.cs
- FindResponse.cs
- JapaneseLunisolarCalendar.cs
- HttpWriter.cs
- SqlWebEventProvider.cs
- XmlNamespaceDeclarationsAttribute.cs
- SqlConnectionPoolProviderInfo.cs
- DetailsViewCommandEventArgs.cs
- _TimerThread.cs
- SignalGate.cs
- StartFileNameEditor.cs
- ResourcePool.cs
- ButtonBaseDesigner.cs
- QualificationDataAttribute.cs
- ViewManager.cs
- TreeIterators.cs
- AxHost.cs
- smtppermission.cs
- Formatter.cs
- SystemIPAddressInformation.cs
- _AuthenticationState.cs
- PropertyEntry.cs
- TextRangeProviderWrapper.cs
- PolicyFactory.cs
- TogglePattern.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- PenLineCapValidation.cs
- DrawingContextDrawingContextWalker.cs
- IntegerValidatorAttribute.cs
- WeakHashtable.cs
- StorageEntityContainerMapping.cs
- GlyphRunDrawing.cs
- OTFRasterizer.cs
- TypedMessageConverter.cs
- BitmapMetadata.cs
- DataGridViewAccessibleObject.cs
- MetadataArtifactLoaderCompositeFile.cs
- DataGridViewCellStyleConverter.cs
- MetadataCache.cs
- Menu.cs
- CqlLexerHelpers.cs
- __Filters.cs
- BitmapImage.cs
- CapabilitiesSection.cs
- KeyPressEvent.cs
- ImageDrawing.cs
- ReachPrintTicketSerializerAsync.cs
- Pointer.cs
- DrawListViewSubItemEventArgs.cs
- StringFormat.cs
- FtpCachePolicyElement.cs
- StreamSecurityUpgradeAcceptor.cs
- EntitySqlQueryCacheEntry.cs
- GridViewUpdatedEventArgs.cs
- Triplet.cs
- RequestQueryProcessor.cs
- ParentQuery.cs
- BitmapScalingModeValidation.cs
- ControlAdapter.cs
- BooleanStorage.cs