Advertisement
pszczyg

Untitled

Apr 29th, 2016
871
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement