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

◆ EndForEach()

void System.Runtime.Serialization.CodeGenerator.EndForEach ( MethodInfo moveNextMethod)
inlinepackage

Definition at line 336 of file CodeGenerator.cs.

337 {
338 object obj = _blockStack.Pop();
339 ForState forState = obj as ForState;
340 if (forState == null)
341 {
343 }
344 MarkLabel(forState.TestLabel);
345 object end = forState.End;
346 Call(end, moveNextMethod);
347 Brtrue(forState.BeginLabel);
348 if (forState.RequiresEndLabel)
349 {
350 MarkLabel(forState.EndLabel);
351 }
352 }

References System.Runtime.Serialization.CodeGenerator._blockStack, System.Reflection.Emit.Brtrue, System.Reflection.Emit.Call, System.Runtime.Serialization.CodeGenerator.MarkLabel(), System.obj, System.Collections.Generic.Stack< T >.Pop(), and System.Runtime.Serialization.CodeGenerator.ThrowMismatchException().

Referenced by System.Runtime.Serialization.Json.JsonFormatWriterGenerator.CriticalHelper.WriteCollection(), and System.Runtime.Serialization.XmlFormatWriterGenerator.CriticalHelper.WriteCollection().