2 writes to AllowUnsafe
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
175AllowUnsafe = allowUnsafe; 377=> allowUnsafe == AllowUnsafe ? this : new ScriptOptions(this) { AllowUnsafe = allowUnsafe };
7 references to AllowUnsafe
Microsoft.CodeAnalysis.CSharp.Scripting (1)
CSharpScriptCompiler.cs (1)
63allowUnsafe: script.Options.AllowUnsafe,
Microsoft.CodeAnalysis.Scripting (2)
ScriptOptions.cs (2)
191allowUnsafe: other.AllowUnsafe, 377=> allowUnsafe == AllowUnsafe ? this : new ScriptOptions(this) { AllowUnsafe = allowUnsafe };
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
ScriptOptionsTests.cs (4)
199Assert.True(ScriptOptions.Default.WithAllowUnsafe(true).AllowUnsafe); 200Assert.False(ScriptOptions.Default.WithAllowUnsafe(false).AllowUnsafe); 201Assert.True(ScriptOptions.Default.AllowUnsafe); 220Assert.Equal(scriptOptions.AllowUnsafe, compilation.Options.AllowUnsafe);