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:
01560201
Vues:
43
>>>>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.
>
>Is LINQ available in .NET 2.0?

Not sure, I think it's 3.0 or 3.5 Can you do a quick google search?
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