ParameterAdapter Class

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

An adapter that wraps a ParameterInfo and provides metadata access.
public class ParameterAdapter : AttributeAwareMetadataAdapter<ParameterInfo>, IParameter
Inheritance
Implements

Remarks

This class serves as a bridge between the reflection-based ParameterInfo and the metadata representation defined by the IParameter interface. It provides access to parameter-level information regardless of whether the assembly containing the parameter's member was loaded via Common Language Runtime (CLR) or Metadata Load Context (MLC).

Thread Safety

All public members of the type are guaranteed to be thread-safe.

Constructors

ParameterAdapter(IMember, ParameterInfo)Initializes a new instance of the ParameterAdapter class.

Properties

DefaultValueGets the default value of the parameter.
HasDefaultValueGets a value indicating whether the parameter has a default value.
IsByRefGets a value indicating whether the parameter is passed by reference.
IsOptionalGets a value indicating whether the parameter is optional.
IsParameterArrayGets a value indicating whether the parameter is a parameter array.
IsReturnParameterGets a value indicating whether the parameter is a return parameter.
MemberGets the member that this parameter belongs to.
NameGets the name of the metadata element.
PositionGets the position of the parameter in the parameter list.
ReferenceKindGets the reference type of the parameter if it is passed by reference.
TypeGets the type of the parameter.

Methods

CreateAttributeMetadata(CustomAttributeData)Creates a custom attribute metadata instance for the given attribute data.
GetCustomAttributes()Retrieves the underlying custom attributes of the member.
HasOptionalCustomModifier(string)Determines whether the element has a specific optional custom modifier applied.
HasRequiredCustomModifier(string)Determines whether the element has a specific required custom modifier applied.
IsSatisfiableBy(IParameter)Determines whether the specified parameter can be used in place of the current parameter.