public static int TestStructDisposable() { using (var structDisposable = new StructDisposable()) { return(structDisposable.x + 1); } }
public void StructDispose() { for (var i = 0; i < N; i++) { using var _ = new StructDisposable(); } }