PublicApiAttributeArgument Class

A value passed to a custom attribute.

public sealed class PublicApiAttributeArgument

Properties

NameDescription
EnumMemberNamesGets 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
TypeGets the type of the value. For a value passed to a parameter of type Object, it is the type of the boxed value.
ValueGets 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.

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.

public ImmutableArray<string> EnumMemberNames { get; }
public PublicApiAttributeArgumentKind Kind { get; }

No documentation is available.

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; }

Methods

NameDescription
ToString()
public override string ToString()

Returns

string

No documentation is available.