Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing an integer to a value in a string
Message
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01560155
Message ID:
01560201
Views:
42
>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform