<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku_sh</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku_sh/</author_url>
  <blog_title>sh1’s diary</blog_title>
  <blog_url>https://shikaku-sh.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>これまでの流れ 一番の違いはオブジェクト初期化子 record 型専用の初期化 with 参考 C# 9.0 から init アクセサーが追加されています。比較的に使いやすいアクセサーですが、利用しているでしょうか。仕様を把握しているでしょうか。 これまでの流れ getter/setter で記述するパターンは、（アクセス修飾子を除くと）だいたいこんな感じの流れがありました。 get; set; (C# 3.0) get; (C# 6.0) get; init; (C# 9.0) 一番の基本形となるパターン１で戸惑うことは無いけど、２と３の違いを把握できていますか。そこが init アクセサー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikaku-sh.hatenablog.com%2Fentry%2Fc-sharp-how-to-use-init-accessor&quot; title=&quot;C# init アクセサー (C#9.0) の使い方 - sh1’s diary&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shikaku_sh/20210823/20210823173353.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-26 18:56:21</published>
  <title>C# init アクセサー (C#9.0) の使い方</title>
  <type>rich</type>
  <url>https://shikaku-sh.hatenablog.com/entry/c-sharp-how-to-use-init-accessor</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
