public ref struct S {
public S() => Console.WriteLine("Constructor");
public void DoWork() => Console.WriteLine("*Work*");
public void Dispose () => Console.WriteLine("Destructor");
}
public static void Idk(){
using S s = new();
s.DoWork();
}