Table of Contents

Class DefaultAttribute

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

IAttribute implementation for already-resolved attributes.

public class DefaultAttribute : IAttribute
Inheritance
DefaultAttribute
Implements
Inherited Members

Constructors

DefaultAttribute(IMethod, ImmutableArray<CustomAttributeTypedArgument<IType>>, ImmutableArray<CustomAttributeNamedArgument<IType>>)

public DefaultAttribute(IMethod constructor, ImmutableArray<CustomAttributeTypedArgument<IType>> fixedArguments, ImmutableArray<CustomAttributeNamedArgument<IType>> namedArguments)

Parameters

constructor IMethod
fixedArguments ImmutableArray<CustomAttributeTypedArgument<IType>>
namedArguments ImmutableArray<CustomAttributeNamedArgument<IType>>

DefaultAttribute(IType, ImmutableArray<CustomAttributeTypedArgument<IType>>, ImmutableArray<CustomAttributeNamedArgument<IType>>)

public DefaultAttribute(IType attributeType, ImmutableArray<CustomAttributeTypedArgument<IType>> fixedArguments, ImmutableArray<CustomAttributeNamedArgument<IType>> namedArguments)

Parameters

attributeType IType
fixedArguments ImmutableArray<CustomAttributeTypedArgument<IType>>
namedArguments ImmutableArray<CustomAttributeNamedArgument<IType>>

Properties

AttributeType

Gets the type of the attribute.

public IType AttributeType { get; }

Property Value

IType

Constructor

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

public IMethod Constructor { get; }

Property Value

IMethod

FixedArguments

Gets the positional arguments.

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

Property Value

ImmutableArray<CustomAttributeTypedArgument<IType>>

NamedArguments

Gets the named arguments passed to the attribute.

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

Property Value

ImmutableArray<CustomAttributeNamedArgument<IType>>