Skip to content

Conversation

teramako
Copy link

PR Summary

PR Context

For:

…and generic

for issue: PowerShell#822

Rewrote the entire code for converting types to strings.
@teramako teramako changed the title fix: wrong outputs of ParameterType and Syntax if the type is nested and generic Fix: wrong outputs of ParameterType and Syntax if the type is nested and generic Sep 14, 2025
@teramako
Copy link
Author

My current patch aligns with the current platyPS design by limiting parameter type abbreviations to namespaces only.
When -AbbreviateParameterTypeName is specified, System.Int32 is rendered as Int32, not int.

If you prefer it to be int, please reply.
In fact, PowerShell help displays System.Int32 as int.

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.

1 participant