// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using ESup; namespace E { public class Test { public void Sub3(int iv, double xv, string sv) { Console.WriteLine(iv + " " + xv + " " + (sv ?? "null")); foreach(Call cal in Trace.Instance.Stack) { Console.WriteLine(cal); } } public void Sub2(int iv, double xv) { Sub3(iv, xv, "ABC"); Sub3(iv, xv, null); } public void Sub1(int iv) { Sub2(iv, 123.456); } public static void Main(string[] args) { Test o = new Test(); o.Sub1(123); } } }