<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Yoichiro</author_name>
  <author_url>https://blog.hatena.ne.jp/Yoichiro/</author_url>
  <blog_title>カブに乗ったプログラマ</blog_title>
  <blog_url>https://yoichiro-2.hatenadiary.org/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#にはコンパイル時定数と実行時定数の2種類の定数が用意されています。 コンパイル時定数：constで定義された定数のことで、名称の通りコンパイル時にリテラル値が設定された中間言語が生成される。 実行時定数：readonlyで定義された定数のことで、クラスのコンストラクタで値が設定される定数である。コンパイル時には読み取り専用の値への参照を行う中間言語が生成される。 項目1のアクセス可能なデータメンバの代わりに常にプロパティを使用する でも出てきましたが、機能が同じであっても生成される中間言語が異なる場合、思いもよらない問題を引き起こすことがあります。 今回の場合も、複数のアセンブリで構成され…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoichiro-2.hatenadiary.org%2Fentry%2F20100616%2F1276659357&quot; title=&quot;Effective C# を読んでみる(項目2 const よりもreadonlyを使用する) - カブに乗ったプログラマ&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>2010-06-16 12:35:57</published>
  <title>Effective C# を読んでみる(項目2 const よりもreadonlyを使用する)</title>
  <type>rich</type>
  <url>https://yoichiro-2.hatenadiary.org/entry/20100616/1276659357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
