SHARE
TWEET

Untitled

a guest May 22nd, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Definition (als n wird eine Methode übergeben)
  2. delegate int NumberChanger(int n);
  3.  
  4. //Initialisierung und mehrfache Zuweisung
  5. NumberChanger nc1 = new NumberChanger(AddNum);
  6. NumberChanger nc2 = new NumberChanger(MultNum);
  7.  
  8. //Mehrfache Zuweisung
  9. nc1 += nc2;
  10.  
  11. //Aufruf
  12. nc(5);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top