in the following example the debugger hits the same line twice
public class TestClass
public method TestMethod(x) as int clipper
if x
return 10
else
return 20
endif
end class
function Start() as void strict
var test1 := TestClass{}
local val := 3 as usual
var x := test1.TestMethod(0)
Console.WriteLine("Result: " + x.ToString())
Console.ReadLine()
return
If you have a breakpoint in TestClass.TestMethod in the line with the if statement, the debugger breaks twice. With the first step x is nil, in the second step x gets the correct value. This happens only if the method is clipper
XSharpTests.zip
in the following example the debugger hits the same line twice
If you have a breakpoint in TestClass.TestMethod in the line with the if statement, the debugger breaks twice. With the first step x is nil, in the second step x gets the correct value. This happens only if the method is clipper
XSharpTests.zip