<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ichiroku11</author_name>
  <author_url>https://blog.hatena.ne.jp/ichiroku11/</author_url>
  <blog_title>いちろぐ</blog_title>
  <blog_url>https://ichiroku11.hatenablog.jp/</blog_url>
  <categories>
    <anon>.net-core</anon>
    <anon>c#</anon>
  </categories>
  <description>Type.IsAssignableFromは「メソッドを呼び出すインスタンス型の変数」に「メソッドの引数で指定した型のインスタンス」を割り当てることができるかどうかを判断します。 このメソッドはあるインターフェイスを実装しているか？あるクラスを派生しているか？をリフレクションで調べるときに使うと思いますが、文章で説明されてもすんなり頭に入ってこないですね。 たまに使うとどっちがどっちか忘れてるというか考えることが多いのでサンプルを残しておきます。 class Base { } interface IInterface { } class Derived : Base, IInterface {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fichiroku11.hatenablog.jp%2Fentry%2F2019%2F11%2F27%2F211226&quot; title=&quot;.NET Core - Type.IsAssignableFromのメモ - いちろぐ&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>2019-11-27 21:12:26</published>
  <title>.NET Core - Type.IsAssignableFromのメモ</title>
  <type>rich</type>
  <url>https://ichiroku11.hatenablog.jp/entry/2019/11/27/211226</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
