Let say I have a generic member in a class or method, so:
public class Foo { public List Bar { get; set; } public void Baz() {
You can use this one for return type of generic list:
public string ListType(T value) { var valueType = value.GetType().GenericTypeArguments[0].FullName; return valueType; }