<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsukanrock</author_name>
  <author_url>https://blog.hatena.ne.jp/atsukanrock/</author_url>
  <blog_title>atsukanrockのブログ</blog_title>
  <blog_url>https://atsukanrock.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>??演算子（null合体演算子）というのがある。C# 2.0（Visual Studio 2005でのC#のバージョン）でも使える。恥ずかしながら、ついさっき知った…。 x ?? y と書くと、xがnullの場合yと評価され、それ以外の場合はxと評価される。これ、絶対使う。サンプルは以下のとおり。 // OracleのNVLみたいなもんですね Console.WriteLine(null ?? &quot;hoge&quot;); // outputs &quot;hoge&quot; // 連続させてもOK Console.WriteLine(null ?? &quot;hoge&quot; ?? &quot;fuga&quot;); // outputs &quot;hoge&quot;</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatsukanrock.hatenablog.com%2Fentry%2F20090401%2F1238553693&quot; title=&quot;??演算子（null合体演算子） - atsukanrockのブログ&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>2009-04-01 11:41:33</published>
  <title>??演算子（null合体演算子）</title>
  <type>rich</type>
  <url>https://atsukanrock.hatenablog.com/entry/20090401/1238553693</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
