Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefaultBinder.cs
- System.Data_BID.cs
- AnnotationMap.cs
- DockingAttribute.cs
- PathFigureCollection.cs
- RegexRunner.cs
- SpeakProgressEventArgs.cs
- PropertyEmitterBase.cs
- DataGridViewCheckBoxCell.cs
- GeneralTransform2DTo3D.cs
- WindowsHyperlink.cs
- BinaryCommonClasses.cs
- FormatConvertedBitmap.cs
- DatagridviewDisplayedBandsData.cs
- FilterQueryOptionExpression.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XsltCompileContext.cs
- WebPartActionVerb.cs
- MetaType.cs
- TransformConverter.cs
- MatchAttribute.cs
- HierarchicalDataTemplate.cs
- IPAddressCollection.cs
- LocalizationCodeDomSerializer.cs
- EditorZoneDesigner.cs
- XmlAttributes.cs
- BaseDataListDesigner.cs
- SqlWriter.cs
- HideDisabledControlAdapter.cs
- VisualTreeFlattener.cs
- RecoverInstanceLocksCommand.cs
- UIServiceHelper.cs
- ItemDragEvent.cs
- FloatUtil.cs
- HMACSHA1.cs
- MDIControlStrip.cs
- ToolStripDropDownMenu.cs
- FixedSchema.cs
- Soap.cs
- ListViewGroupItemCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- MessageHeaderException.cs
- AudioDeviceOut.cs
- PersistenceMetadataNamespace.cs
- SystemTcpConnection.cs
- DisplayNameAttribute.cs
- InternalTypeHelper.cs
- FunctionImportMapping.cs
- StorageAssociationSetMapping.cs
- OpenTypeMethods.cs
- ListBindingConverter.cs
- LiteralText.cs
- OleDbInfoMessageEvent.cs
- ScrollViewerAutomationPeer.cs
- UTF32Encoding.cs
- DataGrid.cs
- TitleStyle.cs
- FixedBufferAttribute.cs
- SqlResolver.cs
- TreeChangeInfo.cs
- MetadataArtifactLoaderCompositeResource.cs
- SHA1CryptoServiceProvider.cs
- ObjectStateFormatter.cs
- PropertyRef.cs
- invalidudtexception.cs
- SQLChars.cs
- OleDbPermission.cs
- MultiView.cs
- WindowsToolbarAsMenu.cs
- ServiceContractDetailViewControl.cs
- Int32AnimationUsingKeyFrames.cs
- AxHostDesigner.cs
- WaveHeader.cs
- UnauthorizedWebPart.cs
- FeatureSupport.cs
- MemberRestriction.cs
- NativeMethods.cs
- WorkflowServiceBehavior.cs
- UndoManager.cs
- AttachedPropertyBrowsableAttribute.cs
- RowUpdatedEventArgs.cs
- LineSegment.cs
- Convert.cs
- ImagingCache.cs
- PagesChangedEventArgs.cs
- DataServiceProcessingPipeline.cs
- UrlAuthFailedErrorFormatter.cs
- SerialPinChanges.cs
- ProvidePropertyAttribute.cs
- SafeThemeHandle.cs
- ForeignConstraint.cs
- WebZone.cs
- CurrencyManager.cs
- ObfuscateAssemblyAttribute.cs
- TextSearch.cs
- DefaultMemberAttribute.cs
- InvokeFunc.cs
- ComponentEvent.cs
- ConfigurationConverterBase.cs
- ContextMarshalException.cs