public WOut Work(bool extend) { WOut1 result1; WOut2 result2; Bar bar = new Bar(); result1 = bar.Dojob1(); finalRes = result1; if (extend) { result2 = bar.Dojob2(result1); finalRes = result2; } T2 temp = new T2(); temp.foo_diff(); System.Console.WriteLine("hello"); ISet <int> mySet = new HashSet <int>(); return(finalRes); }