<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kakisoft</author_name>
  <author_url>https://blog.hatena.ne.jp/kakisoft/</author_url>
  <blog_title>かきスタンプ</blog_title>
  <blog_url>https://www.kakistamp.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>アップキャストは、常に安全に行える ダウンキャストは、エラーが発生する事がある。 ※ 解説 ※ キャストは型を変更するだけで、中身が消える訳ではない。 （アクセスできる範囲が変わるだけで、実態は存在している） インスタンス作成時、メモリに領域が割り当てられる。 子クラスのインスタンスは、親クラスのインスタンスより多くの領域を必用とする。 親→子 とキャストした場合、子クラスが必要とする領域に、メモリが割り当てられていない状態となる。 （そのため、エラーとして弾いている。） 以上を踏まえて、サンプルソースで説明。 //親クラス class ParentClass { } //子クラス class…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.kakistamp.com%2Fentry%2F2018%2F04%2F29%2F010258&quot; title=&quot;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>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kakisoft/20180429/20180429005828.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-29 01:02:58</published>
  <title>C#：アップキャストとダウンキャストについて、サンプルソース付きで解説してみる</title>
  <type>rich</type>
  <url>https://www.kakistamp.com/entry/2018/04/29/010258</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
