Recently i found out i can write in a \" by writing two \" ex @\"abc\"\"def\". I find the @ string literal useful. But how do i write in a tab or n
The correctest way to do this:
string str = string.Format(
CultureInfo.CurrentCulture, // or InvariantCulture
@"abc{0}cde",
"\t");
and
string str = string.Format(
CultureInfo.CurrentCulture, // or InvariantCulture
@"abc{0}cde",
Environment.NewLine);
you could have more then one appearance of {0} in the string.