{"height":"190","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikaku-sh.hatenablog.com%2Fentry%2Fc-sharp-how-to-use-init-accessor\" title=\"C# init \u30a2\u30af\u30bb\u30b5\u30fc (C#9.0) \u306e\u4f7f\u3044\u65b9 - sh1\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2022-08-26 18:56:21","description":"\u3053\u308c\u307e\u3067\u306e\u6d41\u308c \u4e00\u756a\u306e\u9055\u3044\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u521d\u671f\u5316\u5b50 record \u578b\u5c02\u7528\u306e\u521d\u671f\u5316 with \u53c2\u8003 C# 9.0 \u304b\u3089 init \u30a2\u30af\u30bb\u30b5\u30fc\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6bd4\u8f03\u7684\u306b\u4f7f\u3044\u3084\u3059\u3044\u30a2\u30af\u30bb\u30b5\u30fc\u3067\u3059\u304c\u3001\u5229\u7528\u3057\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002\u4ed5\u69d8\u3092\u628a\u63e1\u3057\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u3002 \u3053\u308c\u307e\u3067\u306e\u6d41\u308c getter/setter \u3067\u8a18\u8ff0\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u306f\u3001\uff08\u30a2\u30af\u30bb\u30b9\u4fee\u98fe\u5b50\u3092\u9664\u304f\u3068\uff09\u3060\u3044\u305f\u3044\u3053\u3093\u306a\u611f\u3058\u306e\u6d41\u308c\u304c\u3042\u308a\u307e\u3057\u305f\u3002 get; set; (C# 3.0) get; (C# 6.0) get; init; (C# 9.0) \u4e00\u756a\u306e\u57fa\u672c\u5f62\u3068\u306a\u308b\u30d1\u30bf\u30fc\u30f3\uff11\u3067\u6238\u60d1\u3046\u3053\u3068\u306f\u7121\u3044\u3051\u3069\u3001\uff12\u3068\uff13\u306e\u9055\u3044\u3092\u628a\u63e1\u3067\u304d\u3066\u3044\u307e\u3059\u304b\u3002\u305d\u3053\u304c init \u30a2\u30af\u30bb\u30b5\u30fc\u2026","url":"https://shikaku-sh.hatenablog.com/entry/c-sharp-how-to-use-init-accessor","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/s/shikaku_sh/20210823/20210823173353.png","author_name":"shikaku_sh","categories":["C#","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_url":"https://hatena.blog","blog_title":"sh1\u2019s diary","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/shikaku_sh/","version":"1.0","type":"rich","blog_url":"https://shikaku-sh.hatenablog.com/","title":"C# init \u30a2\u30af\u30bb\u30b5\u30fc (C#9.0) \u306e\u4f7f\u3044\u65b9"}