<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>softether</author_name>
  <author_url>https://blog.hatena.ne.jp/softether/</author_url>
  <blog_title>登 大遊 (Daiyuu Nobori) の個人日記</blog_title>
  <blog_url>https://softether.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>.NET のクラスには、静的コンストラクタというものがある。 これは .NET で、そのクラスが初めて使用される直前 (より厳密には、そのクラスの型がインスタンス化される直前) に自動的に呼び出される初期化用の関数である。 複数のスレッドが単一のクラスをはじめて使用しようとする場合も、この静的コンストラクタは 1 度しか呼ばれないように保証される (はず)。 クラス内の静的なフィールドを、定数以外で、安全に初期化するタイミングとして最適。これを知らなかったころは、すごい変なコードを自前で書いて実装していた。 なお、静的コンストラクタが例外を発生させた場合はどうなるのかということが興味深いが、ど…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsoftether.hatenadiary.org%2Fentry%2F20090925%2Fp3&quot; title=&quot; .NET の静的コンストラクタ - 登 大遊 (Daiyuu Nobori) の個人日記&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-09-25 00:00:02</published>
  <title> .NET の静的コンストラクタ</title>
  <type>rich</type>
  <url>https://softether.hatenadiary.org/entry/20090925/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
