17 ms·
The CSharpLang github[1] repository would be where to look for this. I didn't find anything that mentioned adding language support for it, and IIRC, in the pas
by zastrowm 9y ago
The CSharpLang github[1] repository would be where to look for this. I didn't find anything that mentioned adding language support for it, and IIRC, in the past they rejected the idea of inline XML or JSON support.
Going the other way of C# inside HTML, you have Razor[2] and Blazor[3], the latter of which is a prototype of Razor running in the browser via web assembly.
[1]: https://github.com/dotnet/csharplang https://github.com/dotnet/csharplang
[2]: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor
[3]: http://blog.stevensanderson.com/2017/11/05/blazor-on-mono/ http://blog.stevensanderson.com/2017/11/05/blazor-on-mono/
- yodon 9y agoBlazor is pretty amazing, but my coder fantasies mostly revolve around a React-JSX-in-C# vision - the syntax and approach just feel so natural and so right. Your point about rejecting inline XML is probably a pretty good data point that I shouldn’t expect what I’m hoping for to happen.
- pjmlp 9y agoWell, if you would use VB.NET instead, it supports XML literals.