ParameterRef.MatchParameter Method |
Check if the provided argument expression-type is compatible with the type of the specified parameter.
Namespace:
Nova.CodeDOM
Assembly:
Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax public static bool MatchParameter(
TypeRefBase reference,
Object obj,
MatchCandidate candidate,
ICollection parameters,
int parameterIndex,
int argumentCount,
TypeRefBase argumentTypeRef,
Expression argument,
ref TypeRefBase paramsTypeRef,
bool expandParams,
Expression parentExpression,
out bool failedBecauseUnresolved,
ref bool isParams
)
Parameters
- reference
- Type: Nova.CodeDOM.TypeRefBase
The parent UnresolvedRef or MethodRef being evaluated. - obj
- Type: System.Object
The CodeObject or MemberInfo having its parameter matched. - candidate
- Type: Nova.Resolving.MatchCandidate
The associated MatchCandidate object (if any). - parameters
- Type: System.Collections.ICollection
The entire collection of parameters for the current object. - parameterIndex
- Type: System.Int32
The index of the current parameter being checked (-1 if matching/excluding an empty parameter list). - argumentCount
- Type: System.Int32
The total number of arguments being matched to the parameters. - argumentTypeRef
- Type: Nova.CodeDOM.TypeRefBase
The evaluated type of the current argument. - argument
- Type: Nova.CodeDOM.Expression
The argument expression. - paramsTypeRef
- Type: Nova.CodeDOM.TypeRefBase
The type of a 'params' parameter that is being expanded (if any). - expandParams
- Type: System.Boolean
True if expanding 'params' parameters is allowed. - parentExpression
- Type: Nova.CodeDOM.Expression
The parent expression (if any) used to track down generic type parameter types. - failedBecauseUnresolved
- Type: System.Boolean
True if the match failed because of an unresolved or undetermined type reference, otherwise false. - isParams
- Type: System.Boolean
True if the parameter is 'params'.
Return Value
Type:
BooleanTrue if the parameter matches, otherwise false.
See Also