indented-automation / Indented.StubCommand

MIT License
23 stars 4 forks source link

Generated commands: OutputType #5

Closed indented-automation closed 7 years ago

indented-automation commented 7 years ago

The OutputType attribute trusts the name property to hold a .NET type name. This assumption is flawed as the OutputType attribute may use a string.

This problem is exhibits when creating a stub of a module based on a WMI class (cdxml module) such as the Storage module.

OutputType must fill .NET types from the Type property. If Type is empty, use Name as a string.