public static Test None = new(null);
public Test(Object instance) {
public static void Main()
long memoryBefore = GC.GetTotalMemory(true);
long memoryAfter = GC.GetTotalMemory(true);
Console.WriteLine($"Memory used: {memoryAfter - memoryBefore} bytes");
public static void TestNone() {
public static void TestNewNull() {
var structA = new Test(null);
var structB = new Test(null);
var structc = new Test(null);
var structD = new Test(null);
var structE = new Test(null);