<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>結論 戻り値の型（クラス）がデフォルトコンストラクタを定義していない場合に発生します。自作クラスであればデフォルトコンストラクタを定義してください。なお、'.ctor'はコンストラクタを意味します。 例 Microsoft.Win32.SafeHandleZeroOrMinusOneIsInvalidクラスの派生クラスで既定コンストラクタを定義しないことでタイトルのエラーを発生できます。 using System; using System.Runtime.InteropServices; using Microsoft.Win32.SafeHandles; class Program { s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2020%2F01%2F11%2F000000&quot; title=&quot;C# 8 P/Invoke時の「System.MissingMethodException: &amp;#39;.ctor&amp;#39;」例外の意味 - potisanのプログラミングメモ&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>2020-01-11 00:00:00</published>
  <title>C# 8 P/Invoke時の「System.MissingMethodException: '.ctor'」例外の意味</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2020/01/11/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
