Files
sbox-public/engine/Sandbox.Compiling.Test/Data/code/blacklist/UsingStatic.cs
Matt Stevens 8c25780848 Fix Compiler.config not being initialized by default
* Extended whitelist tests to use the other method of creating a compiler without explicit compiler settings
* Initialize Compiler._config as it's a struct so everything was zeroed before
2025-12-17 11:07:19 +00:00

16 lines
308 B
C#

using System;
using static System.Runtime.InteropServices.MemoryMarshal;
class UsingStaticTest
{
static void Main()
{
int[] array = { 10, 20, 30, 40 };
ReadOnlySpan<int> span = CreateReadOnlySpan( ref array[0], array.Length );
foreach ( var item in span )
{
Console.WriteLine( item );
}
}
}