Изменения документа Dispose

Редактировал(а) Alexandr Fokin 2024/06/02 16:03

От версии 1.9
отредактировано Alexandr Fokin
на 2023/02/15 23:43
Изменить комментарий: К данной версии нет комментариев
К версии 1.11
отредактировано Alexandr Fokin
на 2024/06/02 16:03
Изменить комментарий: К данной версии нет комментариев

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -88,3 +88,10 @@
88 88   GC.ReRegisterForFinalize(this);
89 89   }
90 90  }{{/code}}
91 +|(% style="width:465px" %)Dispose struct и упаковка (boxing)|(% style="width:1030px" %)(((
92 +If my struct implements IDisposable will it be boxed when used in a using statement?
93 +[[https:~~/~~/stackoverflow.com/questions/2412981/if-my-struct-implements-idisposable-will-it-be-boxed-when-used-in-a-using-statem/2413844#2413844>>https://stackoverflow.com/questions/2412981/if-my-struct-implements-idisposable-will-it-be-boxed-when-used-in-a-using-statem/2413844#2413844]]
94 +
95 +When does a using-statement box its argument, when it's a struct?
96 +[[https:~~/~~/stackoverflow.com/questions/1330571/when-does-a-using-statement-box-its-argument-when-its-a-struct>>https://stackoverflow.com/questions/1330571/when-does-a-using-statement-box-its-argument-when-its-a-struct]]
97 +)))