You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, to get the type of a parameter in a constructor you are doing the following 👍
$Type=$null# couldn't find another place where the returntype was located. # If you know a better place, please update this! I'll pay you beer.$Type=$Parameter.Extent.Text.Split("$")[0]
Instead you could do this, wich will give you the type ... \o/ BEER $Type = $Parameter.StaticType.Name
The same applies to methods !
The text was updated successfully, but these errors were encountered:
LxLeChat
changed the title
Beer
Get param types for constructor & methods
Dec 5, 2020
Ok, to get the type of a parameter in a constructor you are doing the following 👍
Instead you could do this, wich will give you the type ... \o/ BEER
$Type = $Parameter.StaticType.Name
The same applies to methods !
The text was updated successfully, but these errors were encountered: