basically I\'m building a very generic T4 template and one of the things I need it to do is say print variable.ToString()
. However, I want it to evaluate lists and
In general, with no non-generic base type/interface, this requires GetType and a recursive look-up through the base types/interfaces.
However, that doesn't apply here :-)
Just use the non-generic IEnumerable (System.Collections.IEnumerable
), from which the generic IEnumerable (System.Collections.Generic.IEnumerable
) inherits.