I write a function to check data type int32
public static Int32? ParseInt32(this string text)
{
Int32 result;
if (!Int32.TryParse(text, out result))
return null;
return result;
}
How do I extend this function that supports all data types???
thanks.
DateTime?Process?SqlException? All of these are types.