Skip to content

Commit d2655ab

Browse files
committed
Some updates to ensure generation succeeds.
1 parent 035f45d commit d2655ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Generator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public static TypeReference GetUnderlyingType(this TypeReference type)
8484
if (genericDefinition.GenericParameters.Count != 1 && genericDefinition.FullName != "System.Nullable`1")
8585
return type;
8686

87+
return genericType.GenericArguments.FirstOrDefault() ?? type;
8788
}
8889

8990
public static bool HasInterface(this TypeReference typeReference, string fullName)

0 commit comments

Comments
 (0)