Le c sharp

chris_james Messages postés 10 Statut Membre -  
 Cisco -
Bonjour,
g suis noviste en c sharp mais g une application à fer ke g dois utilsé le c sharp, alors joré besion de kelkes explications:

- comment peut on fer une exception personnalisé e comment l'appelé
- comment peut declarer un attribut avec un type nouveau type

Merci!!

1 réponse

Cisco
 
Salut,

Pour lever une exception:

throw new Exception("ton texte");

Pour le second point, j'ai rie compris.

A+
0