<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ufcpp</author_name>
  <author_url>https://blog.hatena.ne.jp/ufcpp/</author_url>
  <blog_title>++C++; // 管理人の日記</blog_title>
  <blog_url>https://ufcpp.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C# 3.0 の匿名型＆型推論、最初はものすごく気持ち悪かったけども、最近どんどん変態的な使い方を覚え始めたかも。LINQ では、匿名型の IEnumerable を使うことになるわけですけども、たまに、空のリストを用意して、それに後から匿名型の要素を追加したい場合が。匿名型の Generic リストをどうやって作ろうか悩んだ結果、以下のようなコードに。 var list = Enumerable.Range(0 0) .Select(x =&gt; new { Name = &quot;&quot;, Value = 0.0 }) .ToList(); list.Add(new { Name = &quot;test1&quot;, V…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fufcpp.hatenadiary.org%2Fentry%2F20071207%2F1197030259&quot; title=&quot; 匿名型の Generic リスト - ++C++; // 管理人の日記&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>2007-12-07 21:24:19</published>
  <title> 匿名型の Generic リスト</title>
  <type>rich</type>
  <url>https://ufcpp.hatenadiary.org/entry/20071207/1197030259</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
