摘要:
/// 泛型类型转换 public static T Convert2TT(string str, T defualtValue) { if (!string.IsNullOrEmpty(str)) { object obj = Convert.ChangeType(str, typeof(T)); if (obj != null) return (T)obj; } return defualtValue; } public static object getDicValue(string paramName, DictionaryString, Object divValues) 阅读全文