ChiliYago
ChiliYago

Reputation: 12289

Attributes that control cmdlet's Definition

I am creating a number of Powershell cmdlet's and am noticing that after I install my snap-in and execute the following command the parameter data types are listed as single instead of the types programmed (in my case float).

get-command -pssnapin myPSSnapin | format-list definition

Definition : Get-Value -Param1<Single> -Param2<Single>

Does anyone know where do I control these values since it is not automatically selecting the proper type?

Thanks

Upvotes: 1

Views: 92

Answers (1)

Keith Hill
Keith Hill

Reputation: 201672

System.Single and System.Double are the .NET framework names for floating point types. C# float and double map to them just like int and long map to System.Int32 and System.Int64.

Upvotes: 3

Related Questions