예제 #1
0
                object convertToType(object pVal, Type pType)
                {
                    if (ToolCell.isNull(pVal))
                    {
                        pVal = ToolType.getTypeDefaulValue(pType);
                    }

                    return(Convert.ChangeType(pVal, pType));
                }
예제 #2
0
 public static object getCellTypeDefaulValue(Type type)
 {
     return((type == typeof(DateTime)) ? DBNull.Value : ToolType.getTypeDefaulValue(type));
 }