Skip to content

Conversation

@reflectronic
Copy link
Contributor

The value returned from this function is never directly inserted into the source. For example, this function is called when calculating type size, meaning that any structure that transitively included an IntPtr field would insert a using System; into the generated file for that type, regardless of whether the file itself used IntPtr. Avoid inserting using statements in this function.

@tannergooding tannergooding merged commit c6bcae9 into dotnet:main Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants