Skip to content

Under what conditions can TypeBuilder.CreateType() return null #68840

@lonix1

Description

@lonix1

Issue description
Under what conditions can TypeBuilder.CreateType() return null?

Target framework

  • .NET Core 5, 6
  • .NET Framework
  • .NET Standard

Details
The TypeBuilder.CreateType() method is defined as nullable:

public Type? CreateType();

Under what conditions can it return null? The docs do not say.

Please document this method signature.

Metadata

Metadata

Assignees

Labels

area-System.Reflection.Emitgood first issueIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributors

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions