Skip to content

Conversation

@eiriktsarpalis
Copy link
Member

Fixes #59791.

Should be backported to release/6.0.

@ghost
Copy link

ghost commented Oct 4, 2021

Tagging subscribers to this area: @dotnet/area-system-text-json
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #59791.

Should be backported to release/6.0.

Author: eiriktsarpalis
Assignees: eiriktsarpalis
Labels:

area-System.Text.Json

Milestone: 7.0.0


public override Type MakeArrayType()
{
return _metadataLoadContext.Compilation.CreateArrayTypeSymbol(_typeSymbol).AsType(_metadataLoadContext);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Originally I thought (without looking at the code) that we didn't add the converter for typeof(byte[]), but the issue is actually related to Roslyn special treatment of arrays.

@eiriktsarpalis eiriktsarpalis merged commit b9eb5ac into dotnet:main Oct 5, 2021
@eiriktsarpalis
Copy link
Member Author

/backport to release/6.0

@eiriktsarpalis eiriktsarpalis deleted the fix/bytearrayhandling branch October 5, 2021 16:25
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2021

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1308446339

@ghost ghost locked as resolved and limited conversation to collaborators Nov 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.Text.Json: SourceGenerator on byte[] generates array of numbers not base64 string

2 participants