You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.88
Former-commit-id: 4b7216ffda08448e562271ce733688e761120fc5
This commit is contained in:
parent
7d05485754
commit
6123a772ed
3
external/cecil/Mono/Type.cs
vendored
3
external/cecil/Mono/Type.cs
vendored
@@ -100,7 +100,8 @@ namespace Mono {
|
||||
public static Type [] GetGenericArguments (this Type type)
|
||||
{
|
||||
#if NET_CORE
|
||||
return type.GetTypeInfo ().GenericTypeArguments;
|
||||
var info = type.GetTypeInfo ();
|
||||
return info.IsGenericTypeDefinition ? info.GenericTypeParameters : info.GenericTypeArguments;
|
||||
#else
|
||||
return type.GetGenericArguments ();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user