<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dotnetmemo</author_name>
  <author_url>https://blog.hatena.ne.jp/dotnetmemo/</author_url>
  <blog_title>開発思考実験日記</blog_title>
  <blog_url>https://dotnetmemo.hatenadiary.org/</blog_url>
  <categories>
    <anon>.NET</anon>
  </categories>
  <description>C#3.0で導入される拡張メソッドを使うとMix-in的なことができます。非常に便利な仕組みで是非C#2.0＋VS2005でも使ってみたいと思いチャレンジします。*1 外部メソッド(Foreign Method)を使う C#3.0で導入された拡張メソッドは、外部メソッド・パターンをコンパイラが自動的に解釈できる仕組みを用意したと捉えることができます。 外部メソッドは第1引数に処理対象のオブジェクトを受け取り、処理対象オブジェクトを利用して処理を行うことで、処理対象のオブジェクトを機能拡張するアイデアです。 以下は、Humanクラスに対してOutputGreetingメソッドを外部メソッドを利用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdotnetmemo.hatenadiary.org%2Fentry%2F20070925%2F1190709993&quot; title=&quot;C#2.0でMix-inを実現する - 開発思考実験日記&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-09-25 17:46:33</published>
  <title>C#2.0でMix-inを実現する</title>
  <type>rich</type>
  <url>https://dotnetmemo.hatenadiary.org/entry/20070925/1190709993</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
