<?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>
  </categories>
  <description>暗黙的に型付けする変数のことを型推論と言います。C#はvarキーワードを利用します。 //通常の書き方 TestClass cls = new TestClass(); //型推論 var cls = new TestClass(); VB.NETはDimキーワードのみにしてAs以降の型を指定しないと型推論となります。 '通常の書き方 Dim cls As TestClass = New TestClass() '型推論 Dim cls = New TestClass() 型推論を使うことで、変数clsは暗黙的にTestClass型となります。 VB.NETユーザーのみ補足 型推論はVB6時代…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsasaki816.hatenablog.com%2Fentry%2F2019%2F05%2F11%2F202323&quot; title=&quot;型推論 - 佐々木屋&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-05-11 20:23:23</published>
  <title>型推論</title>
  <type>rich</type>
  <url>https://sasaki816.hatenablog.com/entry/2019/05/11/202323</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
