dotnet / dotnet/dotnet-api-docs

SuppressGCTransitionAttribute only applies to methods decorated with DllImportAttribute?

オープン
#11,613 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
:watch: Not Triaged area-System.Runtime.InteropServices untriaged
主要言語
C#
スター
949
フォーク
1.7k
平均マージ
2日 19時間
マージ済み PR(30日)
52

説明

### Describe the issue or suggestion

According to the doc page for [SuppressGCTransitionAttribute](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.suppressgctransitionattribute?view=net-9.0), this attribute only applies to methods that were decorated with **DllImportAttribute**.

I assume this attribute also applies to method decorated with **LibraryImportAttribute**, no?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされている SuppressGCTransitionAttribute のドキュメントから始め、そこに記載されている DllImportAttribute の制限を、LibraryImportAttribute の動作およびドキュメントと比較します。その制限で両方の属性に言及すべきか確認し、関連する文言を更新して、レンダリングされた API ページを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
documentation
issue の種類
ドキュメント
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。