Microsoft
Software
Hardware
Network
Question : Fastest way to count how much , I have in string variable with C#
Hi experts!
I’m developing application WinForm on NETFramework 2 with C#. I have a string valuable which can be:
S=”234”;
S=”234,456,456”;
I need to find faster way to count how much are , in this string. It should be as fast as possible as this action is in loop. Please help.
Answer : Fastest way to count how much , I have in string variable with C#
int i = 0;
if(s.Contains(","))
{
int i = string.Split(",").Length - 1;
}
Random Solutions
us domain
SWFAddress and .htaccess?
canonical equations where minima or maxima have second derivative = 0
How to reduce DASD utilization
Cisco VPN Client 5.0.07.0290 on Windows 7 64 bit
Exception processing does not intersept error.
Lotus Notes 8.5
Javascript register...
Microsoft Outlook 2010 Error
to perform save after app deploy using jython scripts