<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rksoftware</author_name>
  <author_url>https://blog.hatena.ne.jp/rksoftware/</author_url>
  <blog_title>rksoftware</blog_title>
  <blog_url>https://rksoftware.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C# 9.0 の確認の目次はこちら ■ init 専用セッター ドキュメントはこちら 初期化時にだけ値をセットできる素敵なプロパティを作れます。もっとわかりやすく簡単に言うと、イミュータブルなオブジェクトが作れます。 初期化とは コンストラクタ 初期化子 ( new XXXX { プロパティ名 = 値} ) with 式 ( 型名 新しい変数 = 変数 with { プロパティ名 = 値 }; ) プロパティの宣言で普段 set と書いている所を init と書くと使えます。 public int MyProperty { get; init; } ■ init の確認 実際に init と書…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frksoftware.hatenablog.com%2Fentry%2F2020%2F11%2F21%2F204039&quot; title=&quot;C# 9.0 の確認「init 専用セッター」 - rksoftware&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>2020-11-21 20:40:39</published>
  <title>C# 9.0 の確認「init 専用セッター」</title>
  <type>rich</type>
  <url>https://rksoftware.hatenablog.com/entry/2020/11/21/204039</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
