<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xin9le</author_name>
  <author_url>https://blog.hatena.ne.jp/xin9le/</author_url>
  <blog_title>xin9le.net</blog_title>
  <blog_url>https://xin9le.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>今回取り上げるのは「プライマリコンストラクタ」です。テキトーな日本語に直すと「一次コンストラクタ」などといった感じになるのでしょうか。この機能を簡単に説明すると、コンストラクタをひとつだけ定義する機能です。それでは順番に見て行きましょう。 とりあえず使ってみる 最小限のサンプルを書いてみるとすると以下のようになります。クラス名の横に関数の引数のような記述がされているのが分かります。このクラス定義 + コンストラクタみたいな書き味がプライマリコンストラクタです。これだけで、「string型のtitleという名前の変数を1つだけ引数に取るコンストラクタを持つBookクラス」が表現できます。 cla…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxin9le.hatenablog.jp%2Fentry%2F2014%2F06%2F16%2F144115&quot; title=&quot;プライマリコンストラクタ - xin9le.net&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>2014-06-16 14:41:15</published>
  <title>プライマリコンストラクタ</title>
  <type>rich</type>
  <url>https://xin9le.hatenablog.jp/entry/2014/06/16/144115</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
