4 ms·
I thought that Roslyn expressly did not support extending the language.
by noblethrasher 13y ago
I thought that Roslyn expressly did not support extending the language.
- taspeotis 13y agoMy 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.
- Guvante 13y agoRoslyn expressly does not support accepting the entire string that he provided. So if you want SQL wrapping C#, Roslyn won't support it until (and if) it supports SQLCLR. However what Roslyn does support is "transform this snippet for me", which is useful if you know the boundary between your code and code it cares about.