[C#] String contient string ?

String contient string ? [C#] - Divers - Programmation

Marsh Posté le 24-04-2006 à 23:07:53    

Bonjour je chercher a faire un si
qui regarde si un string et contenu dans un autre string et qui retourne un bool
Je trouve pas la fonction sous pda
Pourtant en c# il me semble que cest contains

Reply

Marsh Posté le 24-04-2006 à 23:07:53   

Reply

Marsh Posté le 24-04-2006 à 23:10:50    

IndexOf

Reply

Marsh Posté le 25-04-2006 à 20:25:11    

ca retourne 0 cest pas forcement quand c empty quand c au debut ca fait 0 aussi non ?

Reply

Marsh Posté le 25-04-2006 à 20:50:35    

RTFM

Reply

Marsh Posté le 26-04-2006 à 17:57:25    

C'est bon jlai lu la doc tinkiete ca dit 0 => empty  et ca a pas lair detre ca sinon je demanderai pas tinkiete

Reply

Marsh Posté le 26-04-2006 à 18:13:09    

Tu te rends compte que ce que tu dis est incompréhensible?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 26-04-2006 à 21:34:41    

montre nous la doc qui dit que 0 => empty, on attend

Reply

Marsh Posté le 26-04-2006 à 21:40:37    

Taz a écrit :

montre nous la doc qui dit que 0 => empty, on attend


textuellement la doc dit bien ça (à peu près) [:aloy]
pas du tout dans le sens où il l'interprète par contre


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed