Click or drag to resize

ResolverFindBetterConversion Method (Expression, TypeRefBase, TypeRefBase)

Find the better conversion of an expression to two candidate types. [C# 4.0 section 7.5.3.3] Returns 1 if the conversion to typeRef1 is better, 2 if the conversion to typeRef2 is better, 0 if neither is better.

Namespace:  Nova.Resolving
Assembly:  Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax
C#
protected int FindBetterConversion(
	Expression expression,
	TypeRefBase typeRefBase1,
	TypeRefBase typeRefBase2
)

Parameters

expression
Type: Nova.CodeDOMExpression
typeRefBase1
Type: Nova.CodeDOMTypeRefBase
typeRefBase2
Type: Nova.CodeDOMTypeRefBase

Return Value

Type: Int32
See Also