Table of Contents

Interface IAttribute

Namespace
ICSharpCode.Decompiler.TypeSystem
Assembly
ICSharpCode.Decompiler.dll

Represents an attribute.

public interface IAttribute

Properties

AttributeType

Gets the type of the attribute.

IType AttributeType { get; }

Property Value

IType

Constructor

Gets the constructor being used. This property may return null if no matching constructor was found.

IMethod? Constructor { get; }

Property Value

IMethod

FixedArguments

Gets the positional arguments.

ImmutableArray<CustomAttributeTypedArgument<IType>> FixedArguments { get; }

Property Value

ImmutableArray<CustomAttributeTypedArgument<IType>>

HasDecodeErrors

Gets whether there were errors decoding the attribute.

bool HasDecodeErrors { get; }

Property Value

bool

NamedArguments

Gets the named arguments passed to the attribute.

ImmutableArray<CustomAttributeNamedArgument<IType>> NamedArguments { get; }

Property Value

ImmutableArray<CustomAttributeNamedArgument<IType>>