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
- object
- MetadataAdapter<ParameterInfo>
- AttributeAwareMetadataAdapter<ParameterInfo>
- ParameterAdapter
- 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
| DefaultValue | Gets the default value of the parameter. |
| HasDefaultValue | Gets a value indicating whether the parameter has a default value. |
| IsByRef | Gets a value indicating whether the parameter is passed by reference. |
| IsOptional | Gets a value indicating whether the parameter is optional. |
| IsParameterArray | Gets a value indicating whether the parameter is a parameter array. |
| IsReturnParameter | Gets a value indicating whether the parameter is a return parameter. |
| Member | Gets the member that this parameter belongs to. |
| Name | Gets the name of the metadata element. |
| Position | Gets the position of the parameter in the parameter list. |
| ReferenceKind | Gets the reference type of the parameter if it is passed by reference. |
| Type | Gets 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. |
