Example #1
0
        void CallWork()
        {
            SummaClass summa = new SummaClass();

            summa.Nothing = 100;
            WorkWithNothing(summa);
            Console.WriteLine(summa.Nothing);
        }
Example #2
0
        void GetMethodWithParamAndReturnsBoolAsParameter(Predicate <SummaClass> func)
        {
            SummaClass summa = new SummaClass();

            summa.Nothing = 10;
            bool value = func(summa);

            Console.WriteLine("The result " + value);
        }
Example #3
0
 void WorkWithNothing(SummaClass summa)
 {
     summa.PrintNothing();
     Console.WriteLine(summa.Nothing);
     summa.Nothing = 200;
 }