C# Tip – See if an object is a numeric datatype

Here is an extension method you can use to check if an object is one of the numeric datatypes.

This comes in handy when using reflection on objects.


Leave a Reply

Your email address will not be published. Required fields are marked *