-
Notifications
You must be signed in to change notification settings - Fork 470
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
TypeUtil.ToCSharpString(this Type) does not handle nested generic types correctly #365
Comments
(Shameless advertisement:) Type name formatting is surprisingly complex because there are quite a few corner cases to deal with. I happen to have written a small library recently (stakx/TypeNameFormatter) that would solve this problem. It's available as a source code NuGet package. |
That being said, I cannot seem to find a method |
@pmg23, I've migrated this issue over to castleproject/Windsor#404, so please subscribe to the new issue. I'm closing this one here. |
Hi @stakx. Thanks for the quick response. I did indeed mean that one from Windsor. (The namespace, which I should have mentioned is We'll definitely look into using stakx/TypeNameFormatter. Thanks for sharing it. |
The useful extension method
TypeUtil.ToCSharpString(this Type)
does not correctly deal with types nested within generic types [as of Core 4.2.1]. For example:The text was updated successfully, but these errors were encountered: