3 ms·
My understanding is that you use Roslyn to use C# anywhere. It can parse expressions and compile and execute them. E.g. If you're writing a BASIC interpreter:
by taspeotis 13y ago
My understanding is that you use Roslyn to use C# anywhere. It can parse expressions and compile and execute them.
E.g. If you're writing a BASIC interpreter:
10 PRINT "Hello World"
20 CSHARP "Console.WriteLine(42);"
30 GOTO 10
You call Roslyn on line 2 with the expression to parse and execute.