Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5a8d4e9

Browse files
jkotasRon Petrusha
authored andcommitted
Note that shutdown finalization is .NET Framework only (dotnet#2233)
1 parent 78a2a8a commit 5a8d4e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System/Environment.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ Per-machine and per-user environment variables are not supported. A `target` val
12671267
<format type="text/markdown"><![CDATA[
12681268
12691269
## Remarks
1270-
When the CLR unloads an application domain, it runs the finalizers on all objects that have a finalizer method in that application domain. When the CLR shuts down, it starts the finalizer thread on all objects that have a finalizer method. The <xref:System.Environment.HasShutdownStarted%2A> property returns `true` only after the finalizer thread has been started. When the property returns `true`, you can determine whether an application domain is being unloaded or the CLR itself is shutting down by calling the <xref:System.AppDomain.IsFinalizingForUnload%2A?displayProperty=nameWithType> method. This method returns `true` if finalizers are called because the application domain is unloading or `false` if the CLR is shutting down.
1270+
**.NET Framework only**: When the CLR unloads an application domain, it runs the finalizers on all objects that have a finalizer method in that application domain. When the CLR shuts down, it starts the finalizer thread on all objects that have a finalizer method. The <xref:System.Environment.HasShutdownStarted%2A> property returns `true` only after the finalizer thread has been started. When the property returns `true`, you can determine whether an application domain is being unloaded or the CLR itself is shutting down by calling the <xref:System.AppDomain.IsFinalizingForUnload%2A?displayProperty=nameWithType> method. This method returns `true` if finalizers are called because the application domain is unloading or `false` if the CLR is shutting down.
12711271
12721272
The <xref:System.Environment.HasShutdownStarted%2A> property returns `false` if the finalizer thread has not been started.
12731273
@@ -2343,4 +2343,4 @@ If `target` is <xref:System.EnvironmentVariableTarget.User?displayProperty=nameW
23432343
</Docs>
23442344
</Member>
23452345
</Members>
2346-
</Type>
2346+
</Type>

0 commit comments

Comments
 (0)