2014-08-17から1日間の記事一覧

PowerShellのハッシュテーブルとオブジェクト

PowerShellのハッシュテーブルは #単一行 $hashTable = @{ 'Key1' = 'Value1', 'Key2' = 'Value2'} #複数行 $hashTable = @{ 'Key1' = 'Value1' 'Key2' = 'Value2' } といった形で作成できる。 要素へのアクセスは # インデクサ $hashTable['Key1'] #オブジ…