Class DefaultValueParsers
Standard parsers for columns' default values. The default values in database are stored as string and it is
necessary to convert them to the specific column's type. If conversion to desired type fails, the returned
value is always null.
Inheritance
System.Object
DefaultValueParsers
Assembly: Kros.Utils.dll
Syntax
public static class DefaultValueParsers
Methods
ParseBool(String)
Declaration
public static object ParseBool(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseByte(String)
Declaration
public static object ParseByte(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseDate(String)
Declaration
public static object ParseDate(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseDateSql(String)
Declaration
public static object ParseDateSql(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseDecimal(String)
Declaration
public static object ParseDecimal(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseDouble(String)
Declaration
public static object ParseDouble(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseGuid(String)
Declaration
public static object ParseGuid(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseInt16(String)
Declaration
public static object ParseInt16(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseInt32(String)
Declaration
public static object ParseInt32(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseInt64(String)
Declaration
public static object ParseInt64(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseSByte(String)
Declaration
public static object ParseSByte(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseSingle(String)
Declaration
public static object ParseSingle(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseUInt16(String)
Declaration
public static object ParseUInt16(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseUInt32(String)
Declaration
public static object ParseUInt32(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|
ParseUInt64(String)
Declaration
public static object ParseUInt64(string defaultValue)
Parameters
Type |
Name |
Description |
System.String |
defaultValue |
|
Returns
Type |
Description |
System.Object |
|