public static DateTime GetDateTime(object obj) { return(ConvertUtil.ChangeTypeSafe <DateTime>(obj)); }
public static string GetCurrency(object obj) { return((ConvertUtil.ChangeTypeSafe <string>(obj) ?? string.Empty).Trim().Replace(",", ".")); }
public static decimal GetDecimal(object obj) { //return (decimal)GetValue(obj, decimal.Zero); return(ConvertUtil.ChangeTypeSafe <decimal>(obj)); }
public static double GetDouble(object obj) { //return (double)GetValue(obj, (double)0); return(ConvertUtil.ChangeTypeSafe <double>(obj)); }
public static string GetString(object obj) { return(ConvertUtil.ChangeTypeSafe <string>(obj) ?? string.Empty); }
public static bool GetBool(object obj) { //return (bool)GetValue(GetBool(Convert.ToString(obj)), false); return(ConvertUtil.ChangeTypeSafe <bool>(GetBool(ConvertUtil.ChangeTypeSafe <string>(obj)))); }
public static int GetInt(object obj) { //return (int)GetValue(obj, (int)0); return(ConvertUtil.ChangeTypeSafe <int>(obj)); }