I keep seeing paramter constructs like this:
[int]$age = ’90’
Why set the parameter to an integer and then set the default as a string. PowerShell will convert but it just doesn’t make sense.
All you need is
[int]$age = 90
I keep seeing paramter constructs like this:
[int]$age = ’90’
Why set the parameter to an integer and then set the default as a string. PowerShell will convert but it just doesn’t make sense.
All you need is
[int]$age = 90
You must be logged in to post a comment.