Not knowing about the GC and not having to use it (or so I think), which is typical for use, and how can I use my system if I die and learn more about the GC
UPDATE ... how can I facilitate the work of the GC?
UPDATE ... how can I make things easier for the GC?
The easiest way to make the GC easier is to let it work without interference. It is optimized when it needs to run it by itself.
I would see when to use Finalizer in C #. This is one area where you can potentially help the GC.
Big Object Heap , .
http://techiemate.blogspot.com/2009/04/garbage-collection-in-net.html
GC - CLR .
- ...
!
. , GC, " ", .
GC , ++. . GC , . , /, .
GC, Dispose() , IDisposable.
GC:
, , . , , , Disposed .
, . , pinning / GC.KeepAlive, GC , . , GC.
. , , IDisposable, GC.SuppressFinalize(this) , GC .
GC.SuppressFinalize(this)
, GC, , .
GC , .
, ; .
( , ), IDisposable pattern, , ( " ", , ).
, C, , , , , , . , , .
- , . , , "" : , . , .
"", - - , "", . , , , , . , , , , null (Nothing VB). , "" , . - , , , .
GC ( ), , , GC
, , .
UPDATE... GC?
, . , . , .
Source: https://habr.com/ru/post/1753318/More articles:IFRAME search, for example ASP.NET Server Control - asp.netGet url for page that opens in window.onunload window - javascriptis there any C # qualification I can go for? - c #Java Member Initialization Templates - javaCan a ServiceFoute WCF route prefix contain a path value? - .net-4.0iText: setting default PDF viewing options - javaNegative to -1, 0 to 0, positive to 1 - .netHow to connect code to a running iphone application - debuggingHide when clicking on a document, except when clicking on a div - jqueryNetbeans - Can't find include file: QtGui - qtAll Articles