Click or drag to resize

MacroCompilerResolveAmbiguousMatch Delegate

X#
This delegate is used to decide between 2 ambigous methods, functions or constructors

Namespace:  XSharp
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 DELEGATE LONG MacroCompilerResolveAmbiguousMatch(
	m1 AS MemberInfo,
	m2 AS MemberInfo,
	args AS Type[]
)

Parameters

m1
Type: MemberInfo
MethodInfo of the first symbol
m2
Type: MemberInfo
MethodInfo of the second symbol
args
Type: Type
The types of the arguments that were passed to the method call

Return Value

Type: Long
The delegate should return 1 when it wants to use the first symbol and 2 when it wants to use the second symbol or 0 when it does not want to use either symbol
See Also