I have values stored as strings in a
DataTable where each value could really represent an
string (they were all converted to strings during an import process from an external data source). I need to test and see what type each value really is.
What is more efficient for the application (or is there no practical difference)?
- Try to convert to
double). If conversion works, the return
true. If an exception is thrown, return
- Regular expressions designed to match the pattern of an
- Some other method?