Blog

Select which method is called:

class DST {
public double CalculateDst(int x, double y) {return 1; }
public double CalculateDst( double y, int x) { return 2; }
public double CalculateDst(double x, double y) { return 3; }
public double CalculateDst(int x, int y) { return 4; }
}

class Program {

static void Main(string[] args) {
var dst = new DST();
var result = dst.CalculateDst(10.29, 1);
Console.WriteLine(result);

}
}