<?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>
    <anon>Tips</anon>
  </categories>
  <description>イマサラですが、三項演算子 (条件演算子) ってコンパクトに書けていいですよね。利用条件というか制約はありますが、オブジェクト初期化子などif文が書けないようなところにも書くことができて大変便利です。三項演算子は書き方がどーのこーのということが言われることもありますが、そのあたりはコードの見栄えの問題だと思っているので、僕は綺麗に見えればOK派です (派閥争いなどをするつもりはないですが...)。 そんなこんなで(？)、今回はNull許容型への代入を目的に使った場合のお話です。 悔しいコンパイルエラー 例えば、次のようなコードについて考えてみましょう。これはパッと見コンパイルが通りそうです。そ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxin9le.hatenablog.jp%2Fentry%2F2013%2F02%2F11%2F035809&quot; title=&quot;Null許容型と三項演算子 - 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>2013-02-11 03:58:09</published>
  <title>Null許容型と三項演算子</title>
  <type>rich</type>
  <url>https://xin9le.hatenablog.jp/entry/2013/02/11/035809</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
