Commit 679d507
Add sbyte overload when using Ldc_I4_S (#3216)
* Add sbyte overload when using Ldc_I4_S
The `ldc.i4.s` opcode accepts values in the range `[-128,127]`, but the docs only showed the overload with the `byte` parameter as supported when using this opcode. This was confusing for users (including me), since negative values can't obviously be cast to `byte`.
The `sbyte` overload works too when using this opcode.
* Update xml/System.Reflection.Emit/OpCodes.xml
Co-Authored-By: MSDN.WhiteKnight <35516665+MSDN-WhiteKnight@users.noreply.github.com>
* Update xml/System.Reflection.Emit/OpCodes.xml
Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>
* Update xml/System.Reflection.Emit/OpCodes.xml
Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>
* Update xml/System.Reflection.Emit/OpCodes.xml
Co-Authored-By: Maira Wenzel <mairaw@microsoft.com>1 parent 477a3e0 commit 679d507
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6827 | 6827 | | |
6828 | 6828 | | |
6829 | 6829 | | |
6830 | | - | |
| 6830 | + | |
6831 | 6831 | | |
6832 | | - | |
| 6832 | + | |
| 6833 | + | |
6833 | 6834 | | |
6834 | 6835 | | |
6835 | 6836 | | |
| |||
0 commit comments