59 writes to PreserveSig
InteractiveHost32 (2)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (2)
67[DllImport("kernel32", PreserveSig = true)] 70[DllImport("kernel32", PreserveSig = true)]
InteractiveHost64 (2)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (2)
67[DllImport("kernel32", PreserveSig = true)] 70[DllImport("kernel32", PreserveSig = true)]
Microsoft.Build.Framework (4)
NativeMethods.cs (3)
1687[DllImport("kernel32.dll", PreserveSig = true, SetLastError = true)] 1692[DllImport("kernel32.dll", PreserveSig = true, BestFitMapping = false, ThrowOnUnmappableChar = true, CharSet = CharSet.Ansi, SetLastError = true)] 1696[DllImport("kernel32.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true)]
VisualStudioLocationHelper.cs (1)
109[DllImport("Microsoft.VisualStudio.Setup.Configuration.Native.dll", ExactSpelling = true, PreserveSig = true)]
Microsoft.CodeAnalysis (1)
Interop\ClrStrongName.cs (1)
16[DllImport("mscoree.dll", PreserveSig = false, EntryPoint = "CLRCreateInstance")]
Microsoft.CodeAnalysis.Scripting (4)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (2)
69[DllImport("clr", PreserveSig = true)] 72[DllImport("clr", PreserveSig = false)]
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
123[DllImport("clr", EntryPoint = "CreateAssemblyNameObject", CharSet = CharSet.Unicode, PreserveSig = true)]
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
27[DllImport("clr", PreserveSig = true)]
Microsoft.CodeAnalysis.Test.Utilities (1)
TempFiles\DisposableFile.cs (1)
61[DllImport("kernel32.dll", PreserveSig = false)]
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\FusionAssemblyIdentityComparer.cs (1)
97[DllImport("clr", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = true)]
MetadataReferences\FusionAssemblyPortabilityPolicy.cs (2)
61[DllImport("clr", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = false)] 64[DllImport("clr", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, PreserveSig = true)]
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (1)
123[DllImport("clr", EntryPoint = "CreateAssemblyNameObject", CharSet = CharSet.Unicode, PreserveSig = true)]
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
27[DllImport("clr", PreserveSig = true)]
Microsoft.VisualStudio.LanguageServices (1)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
27[DllImport("clr", PreserveSig = true)]
PresentationCore (7)
MS\Win32\UnsafeNativeMethodsPenimc.cs (1)
603[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\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)
2501[DllImport("dwmapi.dll", PreserveSig = false)] 2504[DllImport("dwmapi.dll", PreserveSig = false)] 2507[DllImport("dwmapi.dll", EntryPoint = "DwmIsCompositionEnabled", PreserveSig = false)] 2511[DllImport("dwmapi.dll", EntryPoint = "DwmGetColorizationColor", PreserveSig = true)] 2788[DllImport("uxtheme.dll", PreserveSig = false)] 3194[DllImport("dwmapi.dll", PreserveSig = false)] 3197[DllImport("dwmapi.dll", PreserveSig = false)] 3200[DllImport("dwmapi.dll", PreserveSig = false)] 3203[DllImport("shell32.dll", PreserveSig = false)] 3217[DllImport("shell32.dll", PreserveSig = false)]
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
2222attribute.PreserveSig = (method.GetMethodImplementationFlags() & MethodImplAttributes.PreserveSig) != 0;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodDecoder.cs (1)
146PreserveSig = (ComputeMethodImplementationFlags() & MethodImplAttributes.PreserveSig) != 0,
System.Windows.Forms.Interop.Tests (12)
RichTextBoxTests.cs (12)
164[DllImport(NativeTests, PreserveSig = true)] 167[DllImport(NativeTests, PreserveSig = true)] 170[DllImport(NativeTests, PreserveSig = true)] 173[DllImport(NativeTests, PreserveSig = true)] 176[DllImport(NativeTests, PreserveSig = true)] 179[DllImport(NativeTests, PreserveSig = true)] 182[DllImport(NativeTests, PreserveSig = true)] 185[DllImport(NativeTests, PreserveSig = true)] 188[DllImport(NativeTests, PreserveSig = true)] 191[DllImport(NativeTests, PreserveSig = true)] 194[DllImport(NativeTests, PreserveSig = true)] 197[DllImport(NativeTests, PreserveSig = true)]
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
2624[DllImport(ExternDll.Oleaut32, PreserveSig = true)]
6 references to PreserveSig
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
286Assert.True(dllImport.PreserveSig);
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportFixer.cs (2)
154nameof(DllImportAttribute.PreserveSig), 534else if (IsMatchingNamedArg(attrArg, nameof(DllImportAttribute.PreserveSig)))
System.Private.CoreLib (1)
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
331new 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),