Converts a data type to another data type, smarter than the standard Convert class, including collections and their items as well as object properties (duck typing). With special support for DateTime conversions.
-
Updated
Aug 7, 2024 - C#
Converts a data type to another data type, smarter than the standard Convert class, including collections and their items as well as object properties (duck typing). With special support for DateTime conversions.
Helper for easy and elegant type conversions, taking care of nullable, enum, System.DBNull and other types inherit from System.IConvertible. The method tries to convert to the specified type; if the conversion fails, there is an option to define a fallback value to be returned as a result.
Add a description, image, and links to the iconvertible topic page so that developers can more easily learn about it.
To associate your repository with the iconvertible topic, visit your repo's landing page and select "manage topics."