powershell:tryparse
Dies ist eine alte Version des Dokuments!
Int.TryParse anwenden
[int]$b = $null #used after as refence $b 0 [int32]::TryParse($a , [ref]$b ) # test if is possible to cast and put parsed value in reference variable True $b 10 $b.gettype() IsPublic IsSerial Name BaseType -------- -------- ---- -------- True True Int32 System.ValueType
powershell/tryparse.1537465791.txt.gz · Zuletzt geändert: 2018/09/20 19:49 von ronny