string 转成 list,可直接通过list的构造函数转换
案例:
var RewardLevelIdList = new List<string>(search.RewardLevelIds.Split(','));
string 转成 list,可直接通过list的构造函数转换
案例:
var RewardLevelIdList = new List<string>(search.RewardLevelIds.Split(','));
转载于:https://www.cnblogs.com/redfull/p/8820914.html