ConvertTo-FlatObject, DataType to String
Why do you convert the datatypes all to string? Is it needed?
... Line 99 elseif ($Object.GetType().Name -in 'String', 'DateTime', 'TimeSpan', 'Version', 'Enum') { $Object = $Object.ToString() } elseif ($Depth) ...
Best Regards
Why not? It's for display purposes. If you don't convert Enum to string you will end up with numbers in your exports to HTML for example.
I wanted to use the function for a different use case. Here I need the original data types ... Do you want to implement my enhancement? I think there is no problem with 'DateTime', 'TimeSpan'.
Best regards
You could implement a switch to not do conversion. Feel free