<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yomon8</author_name>
  <author_url>https://blog.hatena.ne.jp/yomon8/</author_url>
  <blog_title>YOMON8.NET</blog_title>
  <blog_url>https://yomon.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>PowerShellのHashTableの場合、そのままだとパイプラインでForeachやWhere句を通しても意図した通りの処理ができません。 PS&gt;$hashTable = @{a=1;b=2} PS&gt;$hashTable | ForEach-Object{$_.Name + &quot;:&quot; + $_.Value} : GetEnumeratorで列挙用オブジェクトを取り出してからパイプラインに渡すと意図した通りに動きます。 PS&gt;$hashTable = @{a=1;b=2} PS&gt;$hashTable.GetEnumerator() | ForEach-Object{$_.Name + &quot;:&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyomon.hatenablog.com%2Fentry%2F2015%2F03%2F23%2F120010&quot; title=&quot;PowerShellでHashTableを配列みたいにForeachやWhereする - YOMON8.NET&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-03-23 12:00:10</published>
  <title>PowerShellでHashTableを配列みたいにForeachやWhereする</title>
  <type>rich</type>
  <url>https://yomon.hatenablog.com/entry/2015/03/23/120010</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
