<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wrongwrongwrongwrong163377</author_name>
  <author_url>https://blog.hatena.ne.jp/wrongwrongwrongwrong163377/</author_url>
  <blog_title>wrongwrongな開発日記</blog_title>
  <blog_url>https://wrongwrong163377.hatenablog.com/</blog_url>
  <categories>
    <anon>VisualBasic</anon>
    <anon>C#</anon>
    <anon>プログラミング</anon>
    <anon>.Net FrameWork</anon>
  </categories>
  <description>タイトルの通りで、結論から言うとStructureは値型であるためNothingにはなりません。 困った状況 Classを返す関数ではNothingを返すことができますが、同じことをStructureでやってもNothingにならないため、IsNothingなどで比較を行うとコードが誤作動します。 Exceptionを吐くようなこともなく変な実行結果になります。 テストコード VBのコンソールアプリでのテストコードです。 Module Module1 Structure TestStruct Public i As Integer Public Shared Function f(ByVal …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwrongwrong163377.hatenablog.com%2Fentry%2F2018%2F02%2F13%2F202707&quot; title=&quot;【.Net】VB/C#のStructureはNothingにならない - wrongwrongな開発日記&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>2018-02-13 20:27:07</published>
  <title>【.Net】VB/C#のStructureはNothingにならない</title>
  <type>rich</type>
  <url>https://wrongwrong163377.hatenablog.com/entry/2018/02/13/202707</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
