5 references to AllowUnsafe
Microsoft.Interop.ComInterfaceGenerator (5)
Analyzers\AddGeneratedComClassFixer.cs (1)
50bool allowUnsafe = selectedOptions.TryGetValue(Option.AllowUnsafe, out var allowUnsafeOption) && allowUnsafeOption is Option.Bool(true);
Analyzers\ConvertComImportToGeneratedComInterfaceFixer.cs (1)
30return selectedOptions.TryGetValue(Option.AllowUnsafe, out Option allowUnsafeOption) && allowUnsafeOption is Option.Bool(true)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (3)
46public const string AllowUnsafe = nameof(AllowUnsafe); 135var selectedOptions = fix.SelectedOptions.Add(Option.AllowUnsafe, new Option.Bool(true)); 174bool addUnsafe = options.TryGetValue(Option.AllowUnsafe, out Option allowUnsafeOption) && allowUnsafeOption is Option.Bool(true);