C#

Hagi 2020. 8. 12. 09:14

int 횟수= 문자열.Count(f => f == '특정문자');

 

int count = source.Count(f => f == '/');

출처 : stack overflow