DataValueToType(DataColumn, Object, Boolean, CutTypeString) Method

Converts a value to the indicated column type.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static Object ValueToType(
	DataColumn column,
	Object value,
	bool emptyIsNull = true,
	CutTypeString cutString = CutTypeString.Right
)

Parameters

column  DataColumn
Data column.
value  Object
Value to convert.
emptyIsNull  Boolean  (Optional)
If the field is of type String then it can be set to if it is empty.
cutString  CutTypeString  (Optional)
If the field is of type String then you can indicate that it be cut if the size is exceeded.

Return Value

Object
Object with the value converted.

See Also