Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1113 connectés 

  FORUM HardWare.fr
  Programmation
  Divers

  [C#] String contient string ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[C#] String contient string ?

n°1353199
korben31
Posté le 24-04-2006 à 23:07:53  profilanswer
 

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

mood
Publicité
Posté le 24-04-2006 à 23:07:53  profilanswer
 

n°1353200
Taz
bisounours-codeur
Posté le 24-04-2006 à 23:10:50  profilanswer
 

IndexOf

n°1353877
korben31
Posté le 25-04-2006 à 20:25:11  profilanswer
 

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

n°1353896
Taz
bisounours-codeur
Posté le 25-04-2006 à 20:50:35  profilanswer
 

RTFM

n°1354590
korben31
Posté le 26-04-2006 à 17:57:25  profilanswer
 

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

n°1354601
masklinn
í dag viðrar vel til loftárása
Posté le 26-04-2006 à 18:13:09  profilanswer
 

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
n°1354755
Taz
bisounours-codeur
Posté le 26-04-2006 à 21:34:41  profilanswer
 

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

n°1354761
masklinn
í dag viðrar vel til loftárása
Posté le 26-04-2006 à 21:40:37  profilanswer
 

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

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Divers

  [C#] String contient string ?

 

Sujets relatifs
Comparaison string avec un caractère ..... [REGLE]Conversion String en Hexa ("1F") vers byte
arraylist transtypage cast object string int (help please)javascript: tableau à partir d'un string
Probleme conso mémoire string (libstdc++)[Resolu] Recherche d'occurences dans une variable String
sélection un objet grace à un stringComment récuper le résultat d'une transformation dans une String
[Jave] string to dateafficher les données d'un tableau en string
Plus de sujets relatifs à : [C#] String contient string ?


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)