Array of type T指定されたタイプを取得するにはどうすればよいTですか?
以下の LinqPad に適したスニペット:
void Main()
{
Type t = typeof(string);
Type tArray = GetArrayType(t);
tArray.Dump(); // System.String[]
}
Type GetArrayType(Type t)
{
////this is cheating !!
//return typeof(string[]);
}