Author : HASSAN MD TAREQ | Updated : 2021/09/09
PowerShell types
# String
[string] x = 'xxx'
# Boolean
[bool] isOk = $true
.Net types
.Net types are available in PowerShell because PowerShell core is powered by .Net framework.
Hashtable
[hashtable] ht = @{}
String
HashTable
# Check empty HashTable
$ht = @{}
if( !($ht.count -gt 0) ){
# ...
}