Réduire
Brouillon
0
30/04/2013
0
C# - Passage d'arguments par référence
Mots-clés:
Mot clé 'ref'. Voir aussi mot clé 'out'
Ex. :
   public static void Main()
   {
      int a = 0;
      change(ref a); // following this method invocation, a==5
   }
   public static void change (ref int b)
   {
      b = 5;
   }