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
String manipulation - SLB FP Equity --> SLBP.PA
Virtual Data Recovery Error
Sharepoint Survey: Clicked 'No' to 'Show user names while creating the survey! Is there a way to turn the feature back on to see the names again?
Writing DLL in Delphi 7
Cisco IPS-4250 - Able to push to syslog server?
Virtual Memory
SBS 2003 CAL Licenses
Windows server 2003 terminal users unable to view png images in IE
XP 10 inbound connection limit question
Globally change the Blackberry Service Display name