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
- RelOps.cs
- XPathAxisIterator.cs
- Atom10FormatterFactory.cs
- NullRuntimeConfig.cs
- StateRuntime.cs
- EventTrigger.cs
- EmbeddedMailObject.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- LoginViewDesigner.cs
- XmlFormatExtensionPointAttribute.cs
- DrawingDrawingContext.cs
- Error.cs
- PublisherIdentityPermission.cs
- DBCSCodePageEncoding.cs
- BrowserInteropHelper.cs
- ContractNamespaceAttribute.cs
- FilePrompt.cs
- FreezableDefaultValueFactory.cs
- IndentedTextWriter.cs
- login.cs
- SQLBytesStorage.cs
- MetadataProperty.cs
- PersistenceException.cs
- DateTimePicker.cs
- SecurityTokenAttachmentMode.cs
- ObjectContext.cs
- SymbolEqualComparer.cs
- TextViewSelectionProcessor.cs
- comcontractssection.cs
- TransformerInfo.cs
- SoapInteropTypes.cs
- OleStrCAMarshaler.cs
- TypeListConverter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlWrappingWriter.cs
- UserPersonalizationStateInfo.cs
- ListGeneralPage.cs
- DynamicQueryableWrapper.cs
- DatePickerTextBox.cs
- PrintingPermission.cs
- ConsoleTraceListener.cs
- SqlFlattener.cs
- PathFigureCollectionConverter.cs
- _TransmitFileOverlappedAsyncResult.cs
- CodeSubDirectory.cs
- DataColumnChangeEvent.cs
- NamespaceInfo.cs
- PrtTicket_Public_Simple.cs
- ImageAnimator.cs
- EventPrivateKey.cs
- CompoundFileDeflateTransform.cs
- TreeViewAutomationPeer.cs
- ConvertBinder.cs
- LicenseException.cs
- MappingItemCollection.cs
- Psha1DerivedKeyGenerator.cs
- DbConnectionStringBuilder.cs
- HostExecutionContextManager.cs
- TdsValueSetter.cs
- ValueQuery.cs
- NativeCppClassAttribute.cs
- DrawingContext.cs
- EventRouteFactory.cs
- SqlDataReaderSmi.cs
- LongPath.cs
- GeometryHitTestParameters.cs
- XmlSecureResolver.cs
- SqlUtil.cs
- _UncName.cs
- SkipStoryboardToFill.cs
- JapaneseCalendar.cs
- DatagridviewDisplayedBandsData.cs
- ForeignConstraint.cs
- SqlUserDefinedTypeAttribute.cs
- ProtocolsConfiguration.cs
- ListBase.cs
- InkCanvas.cs
- TdsRecordBufferSetter.cs
- CheckBoxList.cs
- ManualResetEvent.cs
- RequiredFieldValidator.cs
- TextHidden.cs
- ping.cs
- FlowDocumentPaginator.cs
- XmlElementAttribute.cs
- JapaneseCalendar.cs
- HwndTarget.cs
- AxHost.cs
- SmtpDigestAuthenticationModule.cs
- ToolStripDropDownClosingEventArgs.cs
- StringCollectionEditor.cs
- SqlUtils.cs
- TextBoxLine.cs
- Nullable.cs
- TextViewSelectionProcessor.cs
- DataSourceBooleanViewSchemaConverter.cs
- ProjectionPruner.cs
- SqlUtil.cs
- Screen.cs
- GridViewCancelEditEventArgs.cs