Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Walk the #line
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string foobar = _s("$foo$ bar", new { foo = Foo() }), baz = Baz();
}
static string Foo() { return "Foo"; }
static string Baz() { return "Baz"; }
}
}
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string _s_123 = string.Concat(Foo(), " bar");
string foobar = _s_123, baz = Baz();
}
static string Foo() { return "Foo"; }
static string Baz() { return "Baz"; }
}
}
#line 1 "Program.Original.cs"
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
#line hidden
string _s_123 = string.Concat(Foo(), " bar");
#line 7
string foobar = _s_123 ,
#line 7
baz = Baz();
}
static string Foo() { return "Foo"; }
static string Baz() { return "Baz"; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.