I have these Methods:
static void OverloadedMethod(Action<ulong> handlerAction)
{
}
static void OverloadedMethod(Action<float> handlerAction)
{
}
static void HandlerA(ulong dataProgress)
{
}
static void HandlerB(float dataProgress)
{
}
I can call
OverloadedMethod(HandlerA);
without problems, but if i try to call
OverloadedMethod(HandlerB);
Compiler complains: Ambiguous Invocation.
I have read this article but i dont understand why the compiler knows which method should it choose if the parameter is a ulong but it cannot resolve the same situation if the parameter is a float...