I'm trying to add some code to a code string like this
public static string Compile(string code)
{
Write("compiler called.");
/////////////Below is the string I want to interpolate//////////////
string codeToCompile = $@"
using System;
namespace RoslynCompileSample
{
public class Writer
{
public string Write()
{
{code}
}
}
}";
///////////////// Other Codes...//////////////////////////