зеркало из https://github.com/mono/ikvm-fork.git
Added an API extension to ILGenerator to get the current IL offset.
This commit is contained in:
Родитель
51a08412cf
Коммит
0ab98af76d
|
@ -185,6 +185,12 @@ namespace IKVM.Reflection.Emit
|
|||
exceptionBlockAssistance = false;
|
||||
}
|
||||
|
||||
// non-standard API
|
||||
public int __GetILOffset()
|
||||
{
|
||||
return code.Position;
|
||||
}
|
||||
|
||||
public void BeginCatchBlock(Type exceptionType)
|
||||
{
|
||||
ExceptionBlock block = exceptionStack.Peek();
|
||||
|
|
Загрузка…
Ссылка в новой задаче