VBCodeProvider.CreateParser () returns nothing?

Here is my code

Dim provider = New Microsoft.VisualBasic.VBCodeProvider()
Dim parser = provider.CreateParser()

parseralways nothing. I know the method is CreateParserout of date. How to create a parser for VB code?

Thank!

+3
source share
1 answer

Parsers have never been implemented. In any of the language providers. And never will be, the method was removed in .NET 4.0

There are alternatives that are beautiful in the best hits when you type "vs parser" in the google search box.

0
source

Source: https://habr.com/ru/post/1769265/


All Articles