Subscribe

moriyoshiの日記

Top > PInvoke

PInvoke

2007-03-07

P/Invoke (Platform Invoke) などマーシャル属性を持つクラスにはジェネリック型を関連づけられない

.NET C# generics PInvoke

これにも昨日からずっとハマってました。次のようなコードで再現します。 using System; using System.Runtime.InteropServices; public class Bar<T> { [DllImport("kernel32.dll")] public static extern void Beep(UInt32 freq, UInt32 duration); } public </t>…

Hatena Bookmark -  P/Invoke (Platform Invoke) などマーシャル属性を持つクラスにはジェネリック型を関連づけられない
Profile
id:moriyoshi id:moriyoshi
Subscribed unsubscribe Subscribe Subscribe
About this blog
Search
Links
  • Hatena Blog
  • ブログをはじめる
  • Weekly Hatena Blog
  • Hatena Blog Pro
Recent Entries
  • Goならわかるシステムプログラミング第2版が出たので書評しますね
  • Goのロギングライブラリ 2021年冬
  • 無効値の話①
  • nilが欲しいからと言ってむやみにポインタを使うとひどい目にあう話
  • 「ユニコード」で予期せぬ目に遭った話
Archive
moriyoshiの日記 moriyoshiの日記

Powered by Hatena Blog | ブログを報告する

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe