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