📜  从字符串 c# 代码示例中删除回车符

📅  最后修改于: 2022-03-11 14:48:42.343000             🧑  作者: Mango

代码示例1
// Remove newlines from both sides of the 'example' string variable
string cleaned = example.Trim('\r', '\n');