Skip to content

Commit dac9806

Browse files
chwarrRon Petrusha
authored andcommitted
Fix example link in StackOverflowException (#2515)
1 parent 250e81e commit dac9806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System/StackOverflowException.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
`StackOverflowException` uses the HRESULT COR_E_STACKOVERFLOW, which has the value 0x800703E9. The <xref:System.Reflection.Emit.OpCodes.Localloc> intermediate language (IL) instruction throws `StackOverflowException`. For a list of initial property values for a `StackOverflowException` object, see the <xref:System.StackOverflowException.%23ctor%2A> constructors.
4646
4747
Starting with the .NET Framework 2.0, you can't catch a `StackOverflowException` object with a `try`/`catch` block, and the corresponding process is terminated by default. Consequently, you should write your code to detect and prevent a stack overflow. For example, if your app depends on recursion, use a counter or a state condition to terminate the recursive loop.
48-
See the (Examples)(#examples) section for an illustration of this technique.
48+
See the [Examples](#examples) section for an illustration of this technique.
4949
5050
> [!NOTE]
5151
> Applying the <xref:System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptionsAttribute> attribute to a method that throws a `StackOverflowException` has no effect. You still cannot handle the exception from user code.
@@ -216,4 +216,4 @@ See the (Examples)(#examples) section for an illustration of this technique.
216216
</Docs>
217217
</Member>
218218
</Members>
219-
</Type>
219+
</Type>

0 commit comments

Comments
 (0)