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