<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>.Net開発</anon>
    <anon>C#</anon>
  </categories>
  <description>事の発端は下記のように string 型のリストを匿名メソッドを使って処理しようとしたときです。 List&lt;string&gt; lst = new List&lt;string&gt;(); lst.Add(&quot;test1&quot;); lst.Add(&quot;test2&quot;); lst.Add(&quot;test3&quot;); lst.ForEach(delegate(string s) { s = &quot;hoge&quot;; }); lst.ForEach(Console.WriteLine); この時期待していたのはすべての文字列が hoge になることでしたが、結果は test1 , test2 , test2 でした。 もしかして...と思っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2010%2F02%2F26%2F210900&quot; title=&quot;(.Net)Stringの仕様にやられた - 3流プログラマのメモ書き&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>https://cdn-ak.f.st-hatena.com/images/fotolife/d/deloreanmc12/20180220/20180220092913.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-02-26 00:00:00</published>
  <title>(.Net)Stringの仕様にやられた</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2010/02/26/210900</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
