Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can typeof(T).Module be supported in reflection-free mode? #1326

Closed
kant2002 opened this issue Jul 15, 2021 · 1 comment
Closed

Can typeof(T).Module be supported in reflection-free mode? #1326

kant2002 opened this issue Jul 15, 2021 · 1 comment

Comments

@kant2002
Copy link
Contributor

It looks similar to typeof(T).Assembly and I think some limited form of object can be constructed.
Example of usage

https://github.com/dotnet/winforms/blob/f3c6d29f74c23eb773cfaa7efebfa1eee5635b98/src/System.Windows.Forms/src/System/Windows/Forms/Application.cs#L827-L828

@MichalStrehovsky
Copy link
Member

Yes, the way forward is dotnet/runtime#67193. This should work then.

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

No branches or pull requests

2 participants