按空格或回车截取字符串

 var chs = new[] { " ", "\n", "\r\n" };
            // 验证wafer ID 最后是否为两个字符
 var wafers = waferIDs.Split(chs, options: StringSplitOptions.RemoveEmptyEntries).Select(t => t.Trim()).ToList();

 

posted @ 2021-05-11 10:20  韩梦芫  阅读(208)  评论(0编辑  收藏  举报