PublicApiParameter Class
A parameter of a method, an indexer or a delegate.
public sealed class PublicApiParameterProperties
| Name | Description |
|---|---|
| Attributes | |
| DefaultValue | Gets the default value, as stored in metadata. A default struct value is stored as null. A Decimal value is read from the DecimalConstantAttribute of the parameter. |
| HasDefaultValue | |
| IsOptional | |
| IsParams | Gets a value indicating whether the parameter is a params array. |
| IsParamsCollection | Gets a value indicating whether the parameter is a params collection other than an array (e.g. params ReadOnlySpan<T>). |
| IsScoped | |
| IsThis | Gets a value indicating whether the parameter is the receiver of an extension method. |
| Name | Gets the name of the parameter, or null when metadata does not name it. |
| Ordinal | Gets the zero-based position of the parameter. |
| RefKind | |
| Type |
Attributes
PublicApiParameter.cspublic ImmutableArray<PublicApiAttribute> Attributes { get; }Property value
No documentation is available.
DefaultValue
PublicApiParameter.csHasDefaultValue
PublicApiParameter.csIsOptional
PublicApiParameter.csIsParams
PublicApiParameter.csIsParamsCollection
PublicApiParameter.csIsScoped
PublicApiParameter.csIsThis
PublicApiParameter.csOrdinal
PublicApiParameter.csRefKind
PublicApiParameter.csMethods
| Name | Description |
|---|---|
| ToString() |