PublicApiAttribute Class
A custom attribute applied to an assembly, a symbol, a parameter, a return value or a generic parameter.
public sealed class PublicApiAttributeRemarks
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
| Name | Description |
|---|---|
| AreArgumentsDecoded | 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. |
| AttributeType | |
| ConstructorArguments | |
| NamedArguments |
AreArgumentsDecoded
PublicApiAttribute.csGets 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
AttributeType
PublicApiAttribute.cspublic PublicApiNamedTypeReference AttributeType { get; }Property value
No documentation is available.
ConstructorArguments
PublicApiAttribute.cspublic ImmutableArray<PublicApiAttributeArgument> ConstructorArguments { get; }Property value
No documentation is available.
NamedArguments
PublicApiAttribute.cspublic ImmutableArray<PublicApiAttributeNamedArgument> NamedArguments { get; }Property value
No documentation is available.
Methods
| Name | Description |
|---|---|
| ToString() |