<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>vibiany</author_name>
  <author_url>https://blog.hatena.ne.jp/vibiany/</author_url>
  <blog_title>仕事上のメモと雑談</blog_title>
  <blog_url>https://vibiany.hatenadiary.org/</blog_url>
  <categories>
    <anon>.NET</anon>
  </categories>
  <description>ずっと匿名クラスという名前が出てこなくて、メソッドをメソッドの引数にするようなことをすることをC#で実装する場合にどうするのかを考えていた。 匿名クラスは本来Callbackのための手段の一つであると認識している。GUIのイベントハンドラがこのようなモデルであると考えてよいと思う。C#には匿名クラスという文法はないので、デリゲートを使うことになるのか。 そもそも匿名クラスも必ず匿名にしなければいけないというものではなく、内部クラス、あるいは普通のクラスとして定義して、そのクラスをメソッドの引数に渡してやるのと処理制御的には変わらない。パフォーマンス上どうなのかはわからないが、さほど影響はないと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvibiany.hatenadiary.org%2Fentry%2F20051206%2Fp1&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>2005-12-06 00:00:00</published>
  <title>匿名クラスとデリゲート</title>
  <type>rich</type>
  <url>https://vibiany.hatenadiary.org/entry/20051206/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
