Type conversion
Built‑in converters
Example
// comma separated string to a list of integers
var ids = "1,2,3".Convert<IList<int>>();
// dictionary to a POCO
var dict = new Dictionary<string, object?> { ["Name"] = "Demo", ["Age"] = 42 };
var person = dict.Convert<Person>();Custom converters
Extending
Last updated
Was this helpful?