void CallWork() { SummaClass summa = new SummaClass(); summa.Nothing = 100; WorkWithNothing(summa); Console.WriteLine(summa.Nothing); }
void GetMethodWithParamAndReturnsBoolAsParameter(Predicate <SummaClass> func) { SummaClass summa = new SummaClass(); summa.Nothing = 10; bool value = func(summa); Console.WriteLine("The result " + value); }
void WorkWithNothing(SummaClass summa) { summa.PrintNothing(); Console.WriteLine(summa.Nothing); summa.Nothing = 200; }