Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 491 Bytes

File metadata and controls

19 lines (13 loc) · 491 Bytes

ObjectExtensions.SafeConvert method

Tries to convert an object to a target type, handling nulls, DBNull and empty strings.

public static object SafeConvert(this object o, Type targetType)
parameter description
o Source object
targetType Target type

See Also