NameValueCollectionValueProvider

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传进去  假如字段类型为字符串 就能获取以逗号分隔的字符串,

posted @ 2015-07-03 13:20  米姐  阅读(202)  评论(0编辑  收藏  举报