36 writes to PreserveSig
Microsoft.CodeAnalysis (1)
Interop\ClrStrongName.cs (1)
16[DllImport("mscoree.dll", PreserveSig = false, EntryPoint = "CLRCreateInstance")]
Microsoft.CodeAnalysis.Scripting (4)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (2)
69[DllImport("clr", PreserveSig = true)] 72[DllImport("clr", PreserveSig = false)]
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
123[DllImport("clr", EntryPoint = "CreateAssemblyNameObject", CharSet = CharSet.Unicode, PreserveSig = true)]
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
27[DllImport("clr", PreserveSig = true)]
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
27[DllImport("clr", PreserveSig = true)]
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Helpers\NativeMethods.vb (3)
30PreserveSig:=True, 49PreserveSig:=True, 55<DllImport("user32", CharSet:=CharSet.Auto, PreserveSig:=True, SetLastError:=True)>
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Navigation\NativeMethods.cs (1)
590[DllImport("msdia140.dll", CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = false)]
PresentationCore (7)
MS\Win32\UnsafeNativeMethodsPenimc.cs (1)
609[DllImport(ExternDll.Ole32, ExactSpelling = true, PreserveSig = false)]
MS\Win32\UnsafeNativeMethodsPointer.cs (3)
618[DllImport(DllImport.NInput, EntryPoint = "RegisterOutputCallbackInteractionContext", SetLastError = true, PreserveSig = false)] 636[DllImport(DllImport.NInput, EntryPoint = "BufferPointerPacketsInteractionContext", SetLastError = true, PreserveSig = false)] 643[DllImport(DllImport.NInput, EntryPoint = "ProcessBufferedPacketsInteractionContext", SetLastError = true, PreserveSig = false)]
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_exports.cs (2)
167[DllImport(DllImport.MilCore, EntryPoint = "MILSwDoubleBufferedBitmapGetBackBuffer", PreserveSig = false)] 174[DllImport(DllImport.MilCore, EntryPoint = "MILSwDoubleBufferedBitmapAddDirtyRect", PreserveSig = false)]
System\Windows\Media\MILUtilities.cs (1)
152[DllImport(DllImport.MilCore, EntryPoint = "MilUtility_CopyPixelBuffer", PreserveSig = false)]
PresentationFramework (17)
MS\Internal\AppModel\ShellProvider.cs (1)
1021[DllImport(ExternDll.Shell32, PreserveSig = false)]
System\Windows\Documents\NaturalLanguageHyphenator.cs (3)
208[DllImport(DllImport.PresentationNative, PreserveSig = false)] 211[DllImport(DllImport.PresentationNative, PreserveSig = true)] 214[DllImport(DllImport.PresentationNative, PreserveSig = false)]
System\Windows\Documents\NLGSpellerInterop.cs (3)
1058[DllImport(DllImport.PresentationNative, PreserveSig = false)] 1061[DllImport(DllImport.PresentationNative, PreserveSig = true)] 1064[DllImport(DllImport.PresentationNative, PreserveSig = false)]
System\Windows\Standard\NativeMethods.cs (10)
2503[DllImport("dwmapi.dll", PreserveSig = false)] 2506[DllImport("dwmapi.dll", EntryPoint = "DwmExtendFrameIntoClientArea", PreserveSig = true, SetLastError = true)] 2509[DllImport("dwmapi.dll", EntryPoint = "DwmIsCompositionEnabled", PreserveSig = false)] 2513[DllImport("dwmapi.dll", EntryPoint = "DwmGetColorizationColor", PreserveSig = true)] 2813[DllImport("uxtheme.dll", PreserveSig = false)] 3219[DllImport("dwmapi.dll", PreserveSig = false)] 3222[DllImport("dwmapi.dll", PreserveSig = false)] 3225[DllImport("dwmapi.dll", PreserveSig = false)] 3228[DllImport("shell32.dll", PreserveSig = false)] 3242[DllImport("shell32.dll", PreserveSig = false)]
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
146PreserveSig = (ComputeMethodImplementationFlags() & MethodImplAttributes.PreserveSig) != 0,
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
2624[DllImport(ExternDll.Oleaut32, PreserveSig = true)]
5 references to PreserveSig
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportFixer.cs (2)
166nameof(DllImportAttribute.PreserveSig), 555else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.PreserveSig)))
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeCustomAttributeData.cs (1)
337new CustomAttributeNamedArgument(type.GetField("PreserveSig")!, dllImport.PreserveSig),
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.DllImport.cs (2)
46attributeType.ToCustomAttributeNamedArgument(nameof(DllImportAttribute.PreserveSig), ct[CoreType.Boolean], dia.PreserveSig),