Code:
/ DotNET / DotNET / 8.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
- ClientSponsor.cs
- FontStyles.cs
- ElementFactory.cs
- xmlglyphRunInfo.cs
- AlphaSortedEnumConverter.cs
- CompilerState.cs
- ManipulationDeltaEventArgs.cs
- XmlDocumentFragment.cs
- TimeSpanStorage.cs
- Matrix3D.cs
- StandardOleMarshalObject.cs
- EllipseGeometry.cs
- WebPartConnectionCollection.cs
- ListItem.cs
- IgnoreSection.cs
- XmlHelper.cs
- DataViewManagerListItemTypeDescriptor.cs
- NumberFormatInfo.cs
- SafeEventHandle.cs
- AddInDeploymentState.cs
- StylusTip.cs
- TraceShell.cs
- SubqueryRules.cs
- PackageRelationshipSelector.cs
- CodeComment.cs
- TemplateBindingExtensionConverter.cs
- ProcessModelInfo.cs
- TransformCollection.cs
- DbParameterCollectionHelper.cs
- HyperLinkField.cs
- NullableDecimalSumAggregationOperator.cs
- FontFamilyValueSerializer.cs
- TaskScheduler.cs
- Point3DCollectionConverter.cs
- Util.cs
- XmlBindingWorker.cs
- RuleProcessor.cs
- TextEditorSelection.cs
- XslUrlEditor.cs
- CodeParameterDeclarationExpressionCollection.cs
- RequestCacheValidator.cs
- FormsAuthenticationUser.cs
- _SslState.cs
- ConsumerConnectionPoint.cs
- FontUnitConverter.cs
- ContentWrapperAttribute.cs
- HttpCapabilitiesBase.cs
- RegisteredDisposeScript.cs
- MinimizableAttributeTypeConverter.cs
- TimeSpanStorage.cs
- FontSource.cs
- DataGridCheckBoxColumn.cs
- SynchronizedInputAdaptor.cs
- ImageMap.cs
- EffectiveValueEntry.cs
- PathSegmentCollection.cs
- BinaryMessageEncoder.cs
- CustomLineCap.cs
- AuthenticationModuleElement.cs
- Attribute.cs
- BindingsSection.cs
- Column.cs
- StringUtil.cs
- StreamUpdate.cs
- UpdateException.cs
- ExceptionHandlersDesigner.cs
- SystemSounds.cs
- ThemeDirectoryCompiler.cs
- DataRowExtensions.cs
- RotateTransform3D.cs
- DynamicQueryableWrapper.cs
- SQLGuidStorage.cs
- SqlXml.cs
- ParseHttpDate.cs
- Point3DKeyFrameCollection.cs
- ServicePerformanceCounters.cs
- RemotingConfigParser.cs
- ObjectStateFormatter.cs
- SQLSingle.cs
- GeometryCollection.cs
- EdmComplexTypeAttribute.cs
- TableLayoutPanelCellPosition.cs
- RTLAwareMessageBox.cs
- GridLength.cs
- AccessControlEntry.cs
- StorageBasedPackageProperties.cs
- TableLayoutStyleCollection.cs
- SafeProcessHandle.cs
- Axis.cs
- MaskedTextBoxTextEditorDropDown.cs
- AncestorChangedEventArgs.cs
- EventTask.cs
- WinEventQueueItem.cs
- LineProperties.cs
- Condition.cs
- Application.cs
- DataBoundControlParameterTarget.cs
- ConnectionsZone.cs
- NavigateEvent.cs
- DelegateBodyWriter.cs