pszczyg

Untitled

Apr 29th, 2016
641
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public void Test()
  2.         {
  3.             var displayClass = new DisplayClass();
  4.             displayClass.numberToBeAdded = 4;
  5.             var listToProcess = new List<int>();
  6.             ProcessList(listToProcess, displayClass.Test_b__0);
  7.         }
  8.  
  9.         private sealed class DisplayClass
  10.         {
  11.             public int numberToBeAdded;
  12.  
  13.             public int Test_b__0(int x)
  14.             {
  15.                 return x + numberToBeAdded;
  16.             }
  17.         }
RAW Paste Data