I have the C# method
private static string TypeNameLower(object o)
{
return o.GetType().Name.ToLower();
}
to give me the lower case type name of the input object.
But if input is a string set to null or a nullable int set to null then this method of course fails.
How do I get the type name in this situation?