<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>GARAPON</author_name>
  <author_url>https://blog.hatena.ne.jp/GARAPON/</author_url>
  <blog_title>自分の仕事を憎むには人生は余りにも短い</blog_title>
  <blog_url>https://garapon.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>昨日C++のVirtualについて考えたので今日はC#のVirtualについて考えてみた。 C#は多重継承できないのでC++のような利点は得られない。というか得る必要がない。 んじゃあC#（.NET）Virtualが何の意味をもつのかというと遅延バインディングになる模様。 virtual無し コンパイル時の型情報からメソッドのアドレスを取得 virtual有り オブジェクトヘッダからメソッドテーブルのアドレスを取得して、メソッドのアドレスを取得。 つまりvirtual無しの方が実行は早い。 ちなみにC#はデフォはvirtual有り。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgarapon.hatenablog.com%2Fentry%2F20091002%2F1254489636&quot; title=&quot;C#（.NET）のVirtualについて考えてみた。 - 自分の仕事を憎むには人生は余りにも短い&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>2009-10-02 22:20:36</published>
  <title>C#（.NET）のVirtualについて考えてみた。</title>
  <type>rich</type>
  <url>https://garapon.hatenablog.com/entry/20091002/1254489636</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
