Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing an integer to a value in a string
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01560155
Message ID:
01560197
Vues:
37
>>It's Linq. Think it came in .NET 3.5 ?
>>Even simpler, BTW :
bool isWithin = cstring.Split(',').Contains(iNumber.ToString());
>
>Again, thank you very much. As I just mentioned to Gregory, I can't seem to see the Contains in my list of methods (in Intellisense).

You need to add LINQ reference to the using statement. Try pressing ctrl+dot after you typed Contains and see if it suggests you the using statement.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform