Open
Description
This can be achieved using the new ref returns from C# 7. It's easy to generate the code but what's more problematic is the automatic compilation of the generated code. There are 3 options there:
- Force users to upgrade to VS 2017 (requires Support for VS 2017 #785 to be fixed first);
- Have users install just https://www.nuget.org/packages/Microsoft.Net.Compilers/ replacing their compilers;
- Ship the entire compiler along with C++#.
All of these have serious flaws so a decision must be taken in advance.