Réponse acceptée !
Disons que ta fonction return un tableau de 3 byte et qu'elle n'a pas de paramètres :
public byte[] MaFonction()
{
byte[] tmp = new byte[3];
tmp[0] = 1;
tmp[1] = 2;
tmp[2] = 3;
return tmp;
}
Si ta fonction doit avoir des parametres eh bien tu n'as qu,à les rajouter comme ceci :
public byte[] MaFonction(int a, int b)
{
byte[] tmp = new byte[3];
tmp[0] = a+b;
tmp[1] = a-b;
tmp[2] = a*b;
return tmp;
}
J'pense pas pouvoir etre plus clair sans vraiment savoir qu'est-ce que tu veux faire !!
________________________________________________________________________
Hardware is what we play with until it breaks, Software is what we play with until it works !
