PublicApiAttribute Class

A custom attribute applied to an assembly, a symbol, a parameter, a return value or a generic parameter.

public sealed class PublicApiAttribute

Remarks

All the custom attributes found in metadata are exposed, including the ones that the C# formatter does not display (e.g. NullableAttribute, EditorBrowsableAttribute or CompilerGeneratedAttribute). Pseudo-attributes, such as SerializableAttribute or InAttribute, are stored as metadata flags and are not exposed. The members named by MemberNotNullAttribute and MemberNotNullWhenAttribute that are not visible from outside the assembly are removed, and the attribute is not exposed when it names only such members.

Properties

NameDescription
AreArgumentsDecodedGets a value indicating whether the arguments could be decoded. Decoding requires the underlying type of the enums used as argument, which is unknown for enums declared in other assemblies; such enums are assumed to be Int32. When decoding fails, PublicApiAttribute.ConstructorArguments and PublicApiAttribute.NamedArguments are empty.
AttributeType
ConstructorArguments
NamedArguments

AreArgumentsDecoded

PublicApiAttribute.cs

Gets a value indicating whether the arguments could be decoded. Decoding requires the underlying type of the enums used as argument, which is unknown for enums declared in other assemblies; such enums are assumed to be Int32. When decoding fails, PublicApiAttribute.ConstructorArguments and PublicApiAttribute.NamedArguments are empty.

public bool AreArgumentsDecoded { get; }

Property value

bool

public PublicApiNamedTypeReference AttributeType { get; }

No documentation is available.

ConstructorArguments

PublicApiAttribute.cs
public ImmutableArray<PublicApiAttributeArgument> ConstructorArguments { get; }

No documentation is available.

NamedArguments

PublicApiAttribute.cs
public ImmutableArray<PublicApiAttributeNamedArgument> NamedArguments { get; }

No documentation is available.

Methods

NameDescription
ToString()
public override string ToString()

Returns

string

No documentation is available.