I suggest you ...

Add new feature to System.String like Typescript

This suggestion is migrated to Developer Community. Please use below link to view the current status.
We can write c# code like follows:
string name = "Tom";
string hello = $"Hello {name}!";
string path = @"D:\images\a.png";

Sometimes we want to keep complicated string fromat like Json string, It's very inconvenient. We must write like this:
string json = "{\"name\":\"Tom\"}";
json = @"{""name"":""Tom""}";

But in Typescript, it's very easy:
content: string = `{"name":"Tom"}`;

So I want to add this feature to c#/.Net.

14 votes
Sign in
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Zhaoli Song shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Password icon
Signed in as (Sign out)

Feedback and Knowledge Base