StringUtilsCharCount Method |
Count the number of instances of the specified character in the specified string.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static int CharCount(
string s,
char ch
)
Public Shared Function CharCount (
s As String,
ch As Char
) As Integer
Parameters
- s
- Type: SystemString
The string to search. - ch
- Type: SystemChar
The character for which to search.
Return Value
Type:
Int32The count of specified characters in the string.
See Also