{"published":"2020-11-21 20:40:39","height":"190","provider_name":"Hatena Blog","image_url":null,"type":"rich","url":"https://rksoftware.hatenablog.com/entry/2020/11/21/204039","description":"C# 9.0 \u306e\u78ba\u8a8d\u306e\u76ee\u6b21\u306f\u3053\u3061\u3089 \u25a0 init \u5c02\u7528\u30bb\u30c3\u30bf\u30fc \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3053\u3061\u3089 \u521d\u671f\u5316\u6642\u306b\u3060\u3051\u5024\u3092\u30bb\u30c3\u30c8\u3067\u304d\u308b\u7d20\u6575\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f5c\u308c\u307e\u3059\u3002\u3082\u3063\u3068\u308f\u304b\u308a\u3084\u3059\u304f\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u308c\u307e\u3059\u3002 \u521d\u671f\u5316\u3068\u306f \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf \u521d\u671f\u5316\u5b50 ( new XXXX { \u30d7\u30ed\u30d1\u30c6\u30a3\u540d = \u5024} ) with \u5f0f ( \u578b\u540d \u65b0\u3057\u3044\u5909\u6570 = \u5909\u6570 with { \u30d7\u30ed\u30d1\u30c6\u30a3\u540d = \u5024 }; ) \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5ba3\u8a00\u3067\u666e\u6bb5 set \u3068\u66f8\u3044\u3066\u3044\u308b\u6240\u3092 init \u3068\u66f8\u304f\u3068\u4f7f\u3048\u307e\u3059\u3002 public int MyProperty { get; init; } \u25a0 init \u306e\u78ba\u8a8d \u5b9f\u969b\u306b init \u3068\u66f8\u2026","blog_url":"https://rksoftware.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/rksoftware/","provider_url":"https://hatena.blog","width":"100%","version":"1.0","blog_title":"rksoftware","author_name":"rksoftware","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frksoftware.hatenablog.com%2Fentry%2F2020%2F11%2F21%2F204039\" title=\"C# 9.0 \u306e\u78ba\u8a8d\u300cinit \u5c02\u7528\u30bb\u30c3\u30bf\u30fc\u300d - rksoftware\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"C# 9.0 \u306e\u78ba\u8a8d\u300cinit \u5c02\u7528\u30bb\u30c3\u30bf\u30fc\u300d","categories":["C#"]}