<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>C#のプロパティは、setter/getterのシンタックスシュガーです。C#はプロパティがかなり便利なので基本的な事を紹介したいと思います。 まずはプロパティの書き方 まず、書き方のおさらいです。setterはset、getterはgetキーワードがコンテキストに依存した予約語になっています。それぞれおキーワードの前にアクセス修飾子を指定することができます。 // 値の取得、設定ともに公開する時の書き方 public string Str { get; set; } // 値の取得だけ公開、設定はクラス内のみとする場合 public string Str { get; private set…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2015%2F12%2F01%2F233142&quot; title=&quot;【C#】プロパティのアクセス修飾子の指定メモ - PG日誌&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/T/Takachan/20170115/20170115150341.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-12-01 23:31:42</published>
  <title>【C#】プロパティのアクセス修飾子の指定メモ</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2015/12/01/233142</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
