dotnet / dotnet/dotnet-api-docs

SuppressGCTransitionAttribute only applies to methods decorated with DllImportAttribute?

Open
#11,613 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged area-System.Runtime.InteropServices untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.