Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15430

VS 2019 System.MissingMemberException: 'public member ToList on type String() not found

$
0
0
I am trying to save a list of words in a textfile but get an error, at this line: Dim w = hOO.Words.ToList()

System.MissingMemberException: 'public member ToList on type String() not found

Code:

      If hOO IsNot Nothing Then
            Loadhoot()
        End If

        Dim sb = New StringBuilder()
        Dim w = hOO.Words.ToList()
        w.Sort()
        w.ForEach(Function(x) sb.AppendLine(x))
        File.WriteAllText("words.txt", sb.ToString(), Encoding.UTF8)


Viewing all articles
Browse latest Browse all 15430

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>