Skip to content

Commit

Permalink
Return false if TryAppendTypeName fails for an array type. (#1312)
Browse files Browse the repository at this point in the history
This avoids returning a broken type name of "Windows.Foundation.IReferenceArray`1<"
  • Loading branch information
jlaanstra authored Apr 4, 2023
1 parent 8557f79 commit 6611d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WinRT.Runtime/TypeNameSupport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ private static bool TryAppendTypeName(Type type, StringBuilder builder, TypeName
builder.Append('>');
return true;
}
return true;
return false;
}

if (!type.IsGenericType || type.IsGenericTypeDefinition)
Expand Down

0 comments on commit 6611d0e

Please sign in to comment.