Click or drag to resize

ResolverFindBetterMethod Method

Find the method that better matches the specified arguments. [C# 4.0 section 7.5.3.2] Returns the better-matching method object, or null if neither is better. Assumes that the two candidate methods have already been determined to be valid matches for the given arguments, using implicit conversions where necessary. If either of the method objects represents an extension method, then the TypeRef of the parent object that the methods are being called on must be supplied.

Namespace:  Nova.Resolving
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
protected Object FindBetterMethod(
	MatchCandidate methodCandidate1,
	MatchCandidate methodCandidate2,
	List<Expression> arguments,
	TypeRefBase parentTypeRef,
	UnresolvedRef unresolvedRef
)

Parameters

methodCandidate1
Type: Nova.ResolvingMatchCandidate
MatchCandidate for 1st method object.
methodCandidate2
Type: Nova.ResolvingMatchCandidate
MatchCandidate for 2nd method object.
arguments
Type: System.Collections.GenericListExpression
The method arguments.
parentTypeRef
Type: Nova.CodeDOMTypeRefBase
The TypeRef of the object the methods are being called on (needed for extension methods).
unresolvedRef
Type: Nova.CodeDOMUnresolvedRef
The parent UnresolvedRef used to track down generic type parameter types.

Return Value

Type: Object
The better method object.
See Also