Added new .NET 4.5 property Type.GenericTypeArguments.

This commit is contained in:
jfrijters 2012-10-11 11:10:50 +00:00
Родитель 83329f5f74
Коммит 7fb7d281c0
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -302,6 +302,11 @@ namespace IKVM.Reflection
return ReferenceEquals(type, this) ? base.GetHashCode() : type.GetHashCode();
}
public Type[] GenericTypeArguments
{
get { return IsConstructedGenericType ? GetGenericArguments() : Type.EmptyTypes; }
}
public virtual Type[] GetGenericArguments()
{
return Type.EmptyTypes;