Get Letter Count

The following code returns the amount of times that a char appears in a stringPrivate Function GetLetterCount(ByVal input As String, ByVal letter As Char) As Integer Return input.ToCharArray().Count(Function(c) c = letter)End Function

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts