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
IMethodfixedArguments
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
ITypefixedArguments
ImmutableArray<CustomAttributeTypedArgument<IType>>namedArguments
ImmutableArray<CustomAttributeNamedArgument<IType>>
Properties
AttributeType
Gets the type of the attribute.
public IType AttributeType { get; }
Property Value
Constructor
Gets the constructor being used. This property may return null if no matching constructor was found.
public IMethod Constructor { get; }
Property Value
FixedArguments
Gets the positional arguments.
public ImmutableArray<CustomAttributeTypedArgument<IType>> FixedArguments { get; }
Property Value
NamedArguments
Gets the named arguments passed to the attribute.
public ImmutableArray<CustomAttributeNamedArgument<IType>> NamedArguments { get; }