Учитывая общий тип, включая
List<string>
Nullable<Int32>
как получить общее имя для С#?
var t = typeof(Nullable<DateTime>);
var s = t.GetGenericTypeDefinition().Name + "<" + t.GetGenericArguments()[0].Name + ">";
Это дает
"Nullable`1<DateTime>"
но мне нужно
"Nullable<DateTime>"
.