I have a generic method in my class:
public static void populateSoapBody<TEnum>(Object obj, string[] aMessage)
where TEnum : struct, IComparable, IFormattable, IConvertible
then I use it to populate the class obj
from the string array aMessage
(as detailed here in my other question) ...
Now, for error logging, I'd like to get the name of the type argument that was passed in for the TEnum
type parameter. For example:
private enum DCSSCutomerUpdate_V3
{
...
}
so, when I call the method like this:
Common.populateSoapBody<DCSSCustomerUpdate_V3>(wsSoapBody, aMessage);
in that method, I want to be able to get DCSSCustomerUpdate_V3
as a string