|
|
От: |
Lloyd
|
|
| Дата: | 20.01.07 09:56 | ||
| Оценка: | |||
ID>>typeof(T) == typeof(string)
ID>>if (typeof(T) == typeof(string)) {ParamValue=(T)paramValue; return true;}
if (typeof(T) == typeof(int))
{
int tmp = 0;
bool result = int.TryParse(paramValue, out tmp);
ParamValue = (T)tmp;
return result;
}