Skip to content

Rationalize VB and C# anonymous delegate types. #55292

@CyrusNajmabadi

Description

@CyrusNajmabadi

Right now VB and C# represent anonymous delegates in different ways. Both are INamedTypes with TYpeKind.Delegate. However, a VB anonymous delegate reports IsAnonymousType=true, while a C# one reports CanBeReferencedByName=false.

We should investigate and determine if it is really appropriate for these two languages to deviate here in the representation. If there is a good reason, then that's fine and the split can remain. However, if there isn't, we should unify to help higher layers have a consistent way of handling both of these uniformly.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions