PublicApiAttributeArgument Class
A value passed to a custom attribute.
public sealed class PublicApiAttributeArgumentProperties
| Name | Description |
|---|---|
| EnumMemberNames | Gets the names of the enum members that make up the value of an PublicApiAttributeArgumentKind.Enum argument, or a single name when a member has the exact value. It is empty when the enum definition is not available, or when the value does not match its members. |
| Kind | |
| Type | Gets the type of the value. For a value passed to a parameter of type Object, it is the type of the boxed value. |
| Value | Gets the value: a primitive value or a String for PublicApiAttributeArgumentKind.Constant, the underlying integral value for PublicApiAttributeArgumentKind.Enum, a PublicApiTypeReference for PublicApiAttributeArgumentKind.Type, or an ImmutableArray<T> of PublicApiAttributeArgument for PublicApiAttributeArgumentKind.Array. |
EnumMemberNames
PublicApiAttributeArgument.csGets the names of the enum members that make up the value of an PublicApiAttributeArgumentKind.Enum argument, or a single name when a member has the exact value. It is empty when the enum definition is not available, or when the value does not match its members.
public ImmutableArray<string> EnumMemberNames { get; }Property value
Gets the type of the value. For a value passed to a parameter of type Object, it is the type of the boxed value.
public PublicApiTypeReference Type { get; }Property value
Gets the value: a primitive value or a String for PublicApiAttributeArgumentKind.Constant, the underlying integral value for PublicApiAttributeArgumentKind.Enum, a PublicApiTypeReference for PublicApiAttributeArgumentKind.Type, or an ImmutableArray<T> of PublicApiAttributeArgument for PublicApiAttributeArgumentKind.Array.
public object? Value { get; }Property value
Methods
| Name | Description |
|---|---|
| ToString() |