When are rows and static fields returned by the garbage collector?
I ask about this because I know that staticASP.NET is always alive.
static
Lines are objects and will be collected in the absence of references.
usually keep a permanent reference to the object and thus do not allow to collect these objects. But as long as you still need these objects, everything is fine.
, . , , , , , , (, , - , , ).
, . . , .
static, , , static Type . , , AppDomain , , GC.
Type
AppDomain
strings , . , - AppDomain . , string , GC.
strings
string
, , AppDomain , .
, . , .