Added an API extension to ILGenerator to get the current IL offset.

This commit is contained in:
jfrijters 2009-08-13 07:15:16 +00:00
Родитель 51a08412cf
Коммит 0ab98af76d
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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();