<?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>System.Runtime.InteropServices名前空間のGCHandleはDisposeを実装しないのでusing非対応ですが、ジェネリクス版のGCHandle&lt;T&gt;、PinnedGCHandle&lt;T&gt;、WeakGCHandle&lt;T&gt;はDisposeを実装してusing対応です。.NET 10から追加されていたようです。 using System.Runtime.InteropServices; var list = new List&lt;nint&gt;([0, 1, 2, 3, 4]); using var listNormalHandle = new GCHandle&lt;List&lt;ni…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F09%2F28%2F204229&quot; title=&quot;C# GCHandle&amp;lt;T&amp;gt;ファミリはusing対応 - 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>2026-09-28 20:42:29</published>
  <title>C# GCHandle&lt;T&gt;ファミリはusing対応</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2026/09/28/204229</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
