<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cz75hiro</author_name>
  <author_url>https://blog.hatena.ne.jp/cz75hiro/</author_url>
  <blog_title>ひろぐ</blog_title>
  <blog_url>https://cz75hiro.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>インデクサにintやstringを指定しているコレクションはよく見ます。 しかしインデクサ、ひいてはプロパティも所詮メソッドの範疇。 引数にデリゲートを与えてもいいじゃないかと考え、実装してみました。利用する名前空間は下記3つです。 using System; using System.Collections.ObjectModel; using System.Linq; まずコレクションしたいクラスを書いてみます。 よく見かける「人」を表すPersonクラスです。 一意なID、名前、年齢を持たせたオーソドックスなクラスですね。 public class Person { public int…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcz75hiro.hatenadiary.org%2Fentry%2F20111226%2F1324868129&quot; title=&quot;インデクサにデリゲートを指定してみた - ひろぐ&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>2011-12-26 11:55:29</published>
  <title>インデクサにデリゲートを指定してみた</title>
  <type>rich</type>
  <url>https://cz75hiro.hatenadiary.org/entry/20111226/1324868129</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
