Answers for "find character from string c# count"

C#
7

c# count number of occurrences in string

char myChar = 'x';
string myString = "xyz";

int count = myString.Count(s => s == myChar);
Posted by: Guest on February-24-2020
0

find character from string c# count

int count = Regex.Matches(test, "word").Count;
Posted by: Guest on December-02-2020

Code answers related to "find character from string c# count"

C# Answers by Framework

Browse Popular Code Answers by Language