Skip to content

Commit abb8ec6

Browse files
rajchRon Petrusha
andcommitted
ILGenerator.DefineLabel must match MarkLabel (#3291)
* ILGenerator.DefineLabel must match MarkLabel An exception is thrown later if a call to ILGenerator is not matched by a call to ILGenerator.MarkLabel. * Update ILGenerator.xml * Update xml/System.Reflection.Emit/ILGenerator.xml Co-Authored-By: Ron Petrusha <[email protected]>
1 parent f5d3897 commit abb8ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Reflection.Emit/ILGenerator.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@
535535
<format type="text/markdown"><![CDATA[
536536
537537
## Remarks
538-
To set the position of the label within the stream, you must call <xref:System.Reflection.Emit.ILGenerator.MarkLabel%2A>.
538+
To set the position of the label within the stream, you must call <xref:System.Reflection.Emit.ILGenerator.MarkLabel%2A>. Failure to do so will cause an <xref:System.ArgumentException> when <xref:System.Reflection.Emit.TypeBuilder.CreateType%2A?displayProperty=nameWithType> is called.
539539
540540
This is just a token and does not yet represent any particular location within the stream.
541541

0 commit comments

Comments
 (0)