C# GetValue 方法:移除字符串中的特定行
public string GetValue(string com) { string[] comArray = com.Split(new string[] { '\r\n' }, StringSplitOptions.RemoveEmptyEntries); string returnValue = ReturnValue; foreach(string str in comArray) { returnValue = returnValue.Replace(str, ''); } return returnValue; }
原文地址: https://www.cveoy.top/t/topic/j8XJ 著作权归作者所有。请勿转载和采集!