Struct AttributeInfo
Information regarding an attribute
public readonly record struct AttributeInfo : IEquatable<AttributeInfo>
- Implements
- Inherited Members
- Extension Methods
Remarks
If ArgKind is String then ID is 0. There is no enumerated value ID for string attributes. Additionally, AllowedOn indicates it is allowed everywhere. This may or may not be true, sadly there is no known way to determine applicability of a string attribute.
Properties
- AllowedOn
Gets a value indicating where the attribute is allowed
- ArgKind
Gets a value indicating the kind of argument for this attribute
- HasArg
Gets a value indicating whether this attribute has an argument
- ID
Gets the ID value for this attribute in this runtime
- IsInvalid
Gets a value indicating whether this instance is invalid
- IsString
Gets a value indicating whether this attribute is a string
- IsValid
Gets a value indicating whether this instance is valid
Methods
- From(LazyEncodedString)
Gets information about an attribute from the name