DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSHARP
c# count number of occurrences in string
char myChar = 'x'; string myString = "xyz"; int count = myString.Count(s => s == myChar);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#count
#number
#occurrences
#string
ADD COMMENT
Topic
COMMENT
Name
5+9 =
Submit