Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP inlist() in c#
Message
From
25/01/2013 13:50:21
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01320903
Message ID:
01564105
Views:
50
>>>>But you're right, Contains() is less code
>>>
>>>Which one performs better? I'm adding this to our string extensions, thanks.
>>
>>
>>You'll have to test it
>
>I decided to use generics one.


i wouldn't be surprised if Array.IndexOf() != -1 were faster than Contains()
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform