以下示例是关于Csharp中包含字符串拆分 c#用法的示例代码,想了解字符串拆分 c#的具体用法?字符串拆分 c#怎么用?字符串拆分 c#使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。
// string split first & last
var data = counterCashierViewModel.FullName.Split(' ');
userViewModel.FirstName = data.First(); // First is method of Linq
userViewModel.LastName = data.Last();
本文地址:https://www.itbaoku.cn/snippets/785396.html