2using System.Collections.Immutable;
4using System.Reflection;
24 _method = method ??
throw new ArgumentNullException(nameof(method));
25 _underlyingParameter = underlyingParameter ??
throw new ArgumentNullException(nameof(underlyingParameter));
30 public ParameterAttributes
Attributes => _underlyingParameter.Attributes;
36 public bool IsIn => _underlyingParameter.IsIn;
38 public bool IsLcid => _underlyingParameter.IsLcid;
40 public bool IsOptional => _underlyingParameter.IsOptional;
42 public bool IsOut => _underlyingParameter.IsOut;
44 public bool IsRetval => _underlyingParameter.IsRetval;
50 public string?
Name => _underlyingParameter.Name;
54 public int Position => _underlyingParameter.Position;
58 return ResolveCustomAttributes(_underlyingParameter.GetCustomAttributesData());
63 return ResolveCustomAttributes(_underlyingParameter.GetCustomAttributesData()).Where(i => i.AttributeType == attributeType).ToImmutableArray();
IKVM.Reflection.ParameterInfo ParameterInfo
global::java.lang.invoke.LambdaForm.Name Name
bool IsIn
Gets a value indicating whether this is an input parameter.
bool IsDefined(ITypeSymbol attributeType)
Indicates whether one or more instance of attributeType is defined on this member.
int Position
Gets the zero-based position of the parameter in the formal parameter list.
bool IsLcid
Gets a value indicating whether this parameter is a locale identifier (lcid).
bool IsOptional
Gets a value indicating whether this parameter is optional.
bool IsRetval
Gets a value indicating whether this is a Retval parameter.
IMemberSymbol Member
Gets a value indicating the member in which the parameter is implemented.
object? DefaultValue
Gets a value indicating the default value if the parameter has a default value.
ImmutableArray< CustomAttributeSymbol > GetCustomAttributes(ITypeSymbol attributeType)
Returns an array of custom attributes defined on this member, identified by type, or an empty array i...
int MetadataToken
Gets a value that identifies this parameter in metadata.
ReflectionParameterSymbol(ReflectionSymbolContext context, ReflectionMethodBaseSymbol method, ParameterInfo underlyingParameter)
Initializes a new instance.
ImmutableArray< CustomAttributeSymbol > GetCustomAttributes()
Returns an array of all of the custom attributes defined on this member, excluding named attributes,...
ITypeSymbol ParameterType
Gets the Type of this parameter.
bool HasDefaultValue
Gets a value that indicates whether this parameter has a default value.
bool IsOut
Gets a value indicating whether this is an output parameter.
ParameterAttributes Attributes
Gets the attributes for this parameter.
Holds references to symbols derived from System.Reflection.
Base class for managed symbols.
virtual ReflectionMemberSymbol ResolveMemberSymbol(MemberInfo member)
Resolves the symbol for the specified type.
Obtains information about the attributes of a member and provides access to member metadata.
Discovers the attributes of a parameter and provides access to parameter metadata.
Represents type declarations: class types, interface types, array types, value types,...