<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sasaki816</author_name>
  <author_url>https://blog.hatena.ne.jp/sasaki816/</author_url>
  <blog_title>佐々木屋</blog_title>
  <blog_url>https://sasaki816.hatenablog.com/</blog_url>
  <categories>
    <anon>1．C#、VB.NET</anon>
    <anon>1．C#、VB.NET-6．型</anon>
    <anon>1．C#、VB.NET-1．C#、VB.NETの違い</anon>
  </categories>
  <description>参照型はnullを許容していますが、値型はどうでしょうか。実はここでもC#とVB.NETで微妙に挙動が異なります。 C#におけるnull代入時の挙動 参照型はnullを許容していますが、値型はnull非許容です。つまり、以下のような構文はそもそもコンパイルエラーとなってしまいます。 int a = null; decimal b = null; VB.NETにおけるNothing代入時の挙動 VB.NETのnullはNothingとなります。参照型はC#同様null許容なので何の問題もありませんが、問題は値型です。結論から言えば、C#であろうとVB.NETであろうと値型はnull非許容です。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsasaki816.hatenablog.com%2Fentry%2F2019%2F03%2F10%2F113145&quot; title=&quot;null許容型（C#とVB.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>2019-03-10 11:31:45</published>
  <title>null許容型（C#とVB.NETの違い）</title>
  <type>rich</type>
  <url>https://sasaki816.hatenablog.com/entry/2019/03/10/113145</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
