NameValueCollectionValueProvider provider = new NameValueCollectionValueProvider(nameValueCollection, CultureInfo.InstalledUICulture); if(Type==typeof(string)){
var a = provider.GetValue("a").AttemptedValue;
} else {
var a = provider.GetValue("a").convert(Type)
}
可以把Requert传进去 假如字段类型为字符串 就能获取以逗号分隔的字符串,
时间: 2024-10-14 06:51:49