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