Interface
ParameterInfo
sealed interface ParameterInfo
Module: System.Introspection
Assembly: System.Runtime.dll
Source file: ParameterInfo.rvn
Closed hierarchy: only the permitted direct subtypes can extend this type.
Permitted direct subtypes: RuntimeParameterInfo
Describes an explicit method parameter or property index parameter in the loaded program.
Remarks
Development after Preview 9. Object equality compares the closed declaring type, owner kind and definition index, and zero-based parameter position. Matching names, types or tokens alone are insufficient. Hashes agree for equal parameters; ToString returns Name, which may be empty. Owner identity is retained internally; a public Member property, return parameters, defaults and custom attributes are not implemented.
Properties
8 items
IsOut: bool
Reports an unconditional out parameter. Property index snapshots currently have no out annotations.
Defined by ParameterInfo.IsOut · Required implementation (no default).
IsOutWhenTrue: bool
Reports a conditional out parameter whose assignment is guaranteed on a true return. Property index snapshots currently have no conditional out annotations.
Defined by ParameterInfo.IsOutWhenTrue · Required implementation (no default).
IsReadOnly: bool
Reports a read-only parameter or read-only by-reference type.
Defined by ParameterInfo.IsReadOnly · Required implementation (no default).
MetadataToken: Optional<int>
Gets Some(token) for a retained source parameter row, or None when no row exists, including synthesized parameters. This token is scoped and is not the equality key. Property index…
Defined by ParameterInfo.MetadataToken · Required implementation (no default).
Module: Optional<ModuleInfo>
Gets Some(module) for a declared parameter or None for a synthesized parameter. Repeated wrappers can compare equal without sharing allocation identity.
Defined by ParameterInfo.Module · Required implementation (no default).
Name: string
Gets the retained parameter name, or an empty string when unavailable. Property index parameter names are currently empty.
Defined by ParameterInfo.Name · Required implementation (no default).
ParameterType: TypeInfo
Gets the parameter type with declaring-type generic arguments substituted, including reference/read-only qualification.
Defined by ParameterInfo.ParameterType · Required implementation (no default).
Position: int
Gets the zero-based position among explicit parameters. The instance receiver is not included; return parameters are not exposed.
Defined by ParameterInfo.Position · Required implementation (no default).
Methods
1 item
GetCustomAttributesData() -> Sequence<CustomAttributeData>
Gets directly declared retained parameter attributes without executing constructors.
Defined by ParameterInfo.GetCustomAttributesData · Required implementation (no default).