ParameterRefMatchParameter 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.CodeDOMTypeRefBase
The parent UnresolvedRef or MethodRef being evaluated. - obj
- Type: SystemObject
The CodeObject or MemberInfo having its parameter matched. - candidate
- Type: Nova.ResolvingMatchCandidate
The associated MatchCandidate object (if any). - parameters
- Type: System.CollectionsICollection
The entire collection of parameters for the current object. - parameterIndex
- Type: SystemInt32
The index of the current parameter being checked (-1 if matching/excluding an empty parameter list). - argumentCount
- Type: SystemInt32
The total number of arguments being matched to the parameters. - argumentTypeRef
- Type: Nova.CodeDOMTypeRefBase
The evaluated type of the current argument. - argument
- Type: Nova.CodeDOMExpression
The argument expression. - paramsTypeRef
- Type: Nova.CodeDOMTypeRefBase
The type of a 'params' parameter that is being expanded (if any). - expandParams
- Type: SystemBoolean
True if expanding 'params' parameters is allowed. - parentExpression
- Type: Nova.CodeDOMExpression
The parent expression (if any) used to track down generic type parameter types. - failedBecauseUnresolved
- Type: SystemBoolean
True if the match failed because of an unresolved or undetermined type reference, otherwise false. - isParams
- Type: SystemBoolean
True if the parameter is 'params'.
Return Value
Type:
BooleanTrue if the parameter matches, otherwise false.
See Also