I need a TextBox on a WPF control that can take in text like Commit
(which is the .net string "Commit\r\n\r"
) and convert it back to "Commit
"
as a .net string. I was hoping for a string.Unescape() and string.Escape() method pair, but it doesn't seem to exist. Am I going to have to write my own? or is there a more simple way to do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…