Skip to content

Conversation

@jkoritzinsky
Copy link
Member

Fixes #93151

static ExpressionSyntax CreateEmbeddedDataBlobCreationStatement(ReadOnlySpan<byte> bytes)
{
var literals = new LiteralExpressionSyntax[bytes.Length];
var literals = new CollectionElementSyntax[bytes.Length];
Copy link
Member

Choose a reason for hiding this comment

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

Does this require language version guard?

Copy link
Member Author

Choose a reason for hiding this comment

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

Generally, we haven't been adding language version guards in the interop source generators. It's technically more correct to do so, but I'd rather hold off until we have a customer who explicitly downgrades the language version and files an issue with us before I add them.

Copy link
Member

@jtschuster jtschuster left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@jkoritzinsky jkoritzinsky merged commit 9fc8ae7 into dotnet:main Mar 14, 2024
@jkoritzinsky jkoritzinsky deleted the com-sg-collection-expressions branch March 14, 2024 17:09
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2024
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.

Update ComInterfaceGenerator to use collection expressions in IID creation

3 participants