Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BeginExceptionBlock()

virtual Label System.Reflection.Emit.ILGenerator.BeginExceptionBlock ( )
inlinevirtual

Definition at line 758 of file ILGenerator.cs.

759 {
760 if (m_exceptions == null)
761 {
762 m_exceptions = new __ExceptionInfo[2];
763 }
764 if (m_currExcStack == null)
765 {
766 m_currExcStack = new __ExceptionInfo[2];
767 }
768 if (m_exceptionCount >= m_exceptions.Length)
769 {
770 m_exceptions = EnlargeArray(m_exceptions);
771 }
773 {
774 m_currExcStack = EnlargeArray(m_currExcStack);
775 }
776 Label label = DefineLabel();
777 __ExceptionInfo _ExceptionInfo = new __ExceptionInfo(m_length, label);
778 m_exceptions[m_exceptionCount++] = _ExceptionInfo;
779 m_currExcStack[m_currExcStackCount++] = _ExceptionInfo;
780 return label;
781 }

References System.Reflection.Emit.ILGenerator.DefineLabel(), System.Reflection.Emit.ILGenerator.m_currExcStack, System.Reflection.Emit.ILGenerator.m_currExcStackCount, System.Reflection.Emit.ILGenerator.m_exceptionCount, System.Reflection.Emit.ILGenerator.m_exceptions, and System.Reflection.Emit.ILGenerator.m_length.

Referenced by System.Xml.Serialization.CodeGenerator.BeginExceptionBlock(), System.Dynamic.Utils.DelegateHelpers.CreateObjectArrayDelegateRefEmit(), and System.Linq.Expressions.Compiler.LambdaCompiler.EmitTryExpression().