{"blog_title":"easy work, easy life","provider_url":"https://hatena.blog","title":"beforefieldinit\u30d5\u30e9\u30b0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmatsumoto0325.hatenadiary.org%2Fentry%2F20060901%2F1157107741\" title=\"beforefieldinit\u30d5\u30e9\u30b0 - easy work, easy life\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Programming","C#"],"type":"rich","author_name":"matsumoto0325","url":"https://matsumoto0325.hatenadiary.org/entry/20060901/1157107741","blog_url":"https://matsumoto0325.hatenadiary.org/","width":"100%","version":"1.0","image_url":null,"description":"\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u30af\u30e9\u30b9\u3067\u30d0\u30b0\u304c\u51fa\u305f\u3002\u30ea\u30ea\u30fc\u30b9\u6642\u306e\u307f\u767a\u751f\u3059\u308b\u30d0\u30b0\u3060\u3002\u305f\u304b\u304c\u30b7\u30f3\u30b0\u30eb\u30c8\u30f3\u3068\u601d\u3063\u3066\u6cb9\u65ad\u3057\u3066\u3044\u305f\u3002...\u3068\u3044\u3046\u308f\u3051\u3067static\u5909\u6570\u306e\u521d\u671f\u5316\u306b\u3064\u3044\u3066\u8003\u5bdf\u3002 class Test{ static object o = new object(); } \u3053\u306e\u5834\u5408\u3001beforefieldinit\u30d5\u30e9\u30b0\u304cON\u306b\u306a\u308a\u3001object o \u306e\u521d\u671f\u5316\u30bf\u30a4\u30df\u30f3\u30b0\u306f\u6c7a\u307e\u3089\u306a\u3044\u3002 class Test{ static object o = new object(); static Test{} // static \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf } \u3053\u306e\u5834\u5408\u3001beforefieldinit\u30d5\u30e9\u30b0\u304cOFF\u306b\u306a\u308a\u3001object o \u2026","height":"190","author_url":"https://blog.hatena.ne.jp/matsumoto0325/","published":"2006-09-01 19:49:01"}