正在搜索、分析、总结中...
CA1421: Method uses runtime marshalling when 'DisableRuntimeMarshallingAttribute' is applied - .NET | Microsoft Learn
The following code snippet shows a violation of CA1421: using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [assembly: DisableRuntimeMarshalling] class C { public void Test() { nint offset = Marshal.OffsetOf(typeof(ValueType), field ); } } struct ValueType { int field; } Imports System.Runtime.CompilerServices Imports S...
learn.microsoft.com
CA1421: Die Methode verwendet Runtime-Marshalling, wenn das ‚DisableRuntimeMarshallingAttribute‘ angewendet wird. .NET Microsoft Learn
Eigenschaft Wert Regel-ID CA1421 Titel Methode verwendet Runtimemarshalling, wenn „DisableRuntimeMarshallingAttribute angewendet wird Kategorie InteroperabilitätFix führt zu Unterbrechungen oder bleibt funktionsfähig Untrennbar Standardmäßig in .NET 10 aktiviert Als Vorschlag Anwendbare Sprachen C# und Visual Basic Ursache...
learn.microsoft.com
CA1421: Metoda používá zařazování běhu při použití DisableRuntimeMarshallingAttribute .NET Microsoft Learn
Vlastnost Hodnota ID pravidla CA1421 Název Metoda používá transformaci dat za běhu, když je použit atribut DisableRuntimeMarshallingAttribute. Kategorie Vzájemná funkční spolupráceOprava, která může být destruktivní nebo nedestruktivní Nezlomitelný Povoleno ve výchozím nastavení v .NET 10 Jako návrh Pří...
learn.microsoft.com
没有更多结果了~
- 意见反馈
- 页面反馈