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
multiple users having outlook and phones checking one IMAP mailbox, is it a problem?
Can you explain this syntax please?
PVST
How to uninstall and clean up the Huawei HSDPA USB modem driver?
Database structure - Coldfusion - storing file type
AJAX load HTML into DIV
Converting RTF to PDF on the fly.
Build and run of Actuate reports
imap_mail_move on POP3 mailbox
Outlook won't open .pptx attachment directly