Class RoslynParameterInfo
Namespace: Neon.Roslyn
Assembly: Neon.Roslyn.dll
Syntax
public class RoslynParameterInfo : ParameterInfo
Constructors
RoslynParameterInfo(IParameterSymbol, MetadataLoadContext)
Declaration
public RoslynParameterInfo(IParameterSymbol parameter, MetadataLoadContext metadataLoadContext)
Parameters
Type | Name | Description |
---|---|---|
IParameterSymbol | parameter | |
MetadataLoadContext | metadataLoadContext |
Properties
DefaultValue
Gets a value indicating the default value if the parameter has a default value.
Declaration
public override object DefaultValue { get; }
Property Value
Type | Description |
---|---|
object | The default value of the parameter, or Value if the parameter has no default value. |
Overrides
HasDefaultValue
Gets a value that indicates whether this parameter has a default value.
Declaration
public override bool HasDefaultValue { get; }
Property Value
Type | Description |
---|---|
bool | true if this parameter has a default value; otherwise, false. |
Overrides
Name
Gets the name of the parameter.
Declaration
public override string Name { get; }
Property Value
Type | Description |
---|---|
string | The simple name of this parameter. |
Overrides
ParameterSymbol
Declaration
public IParameterSymbol ParameterSymbol { get; }
Property Value
Type | Description |
---|---|
IParameterSymbol |
ParameterType
Gets the Type
of this parameter.
Declaration
public override Type ParameterType { get; }
Property Value
Type | Description |
---|---|
Type | The |
Overrides
Position
Gets the zero-based position of the parameter in the formal parameter list.
Declaration
public override int Position { get; }
Property Value
Type | Description |
---|---|
int | An integer representing the position this parameter occupies in the parameter list. |
Overrides
Methods
GetCustomAttributesData()
Returns a list of CustomAttributeData objects for the current parameter, which can be used in the reflection-only context.
Declaration
public override IList<CustomAttributeData> GetCustomAttributesData()
Returns
Type | Description |
---|---|
IList<CustomAttributeData> | A generic list of CustomAttributeData objects representing data about the attributes that have been applied to the current parameter. |
Overrides
ToString()
Gets the parameter type and name represented as a string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string containing the type and the name of the parameter. |