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

◆ Pop()

Definition at line 257 of file Stack.cs.

258 {
259 int num = _size - 1;
260 T[] array = _array;
261 if ((uint)num >= (uint)array.Length)
262 {
264 }
265 _version++;
266 _size = num;
267 T result = array[num];
268 if (RuntimeHelpers.IsReferenceOrContainsReferences<T>())
269 {
270 array[num] = default(T);
271 }
272 return result;
273 }

References System.Collections.Generic.Stack< T >._array, System.Collections.Generic.Stack< T >._size, System.Collections.Generic.Stack< T >._version, System.array, and System.Collections.Generic.Stack< T >.ThrowForEmptyStack().

Referenced by System.Runtime.Serialization.CodeGenerator.BeginWhileBody(), System.Runtime.Serialization.CodeGenerator.ElseIf(), System.Runtime.Serialization.CodeGenerator.ElseIfIsEmptyString(), System.Runtime.Serialization.CodeGenerator.EndFor(), System.Xml.Serialization.CodeGenerator.EndFor(), System.Runtime.Serialization.CodeGenerator.EndForEach(), System.Runtime.Serialization.CodeGenerator.EndSwitch(), System.Runtime.Serialization.CodeGenerator.EndWhile(), System.Xml.Xsl.Xslt.QilGenerator.VariableHelper.FinishVariables(), System.Xml.Xsl.Xslt.InvokeGenerator.GenerateInvoke(), System.Xml.Serialization.CodeGenerator.InitElseIf(), System.Xml.Xsl.Runtime.XmlQueryOutput.PopElementNames(), System.Runtime.Serialization.CodeGenerator.PopIfState(), System.Xml.Serialization.CodeGenerator.PopIfState(), System.Xml.Xsl.XPath.XPathParser< Node >.PopPosInfo(), System.Xml.Xsl.XPath.XPathParser< Node >.PopPosInfo(), System.Linq.Expressions.Interpreter.QuoteInstruction.ExpressionQuoter.VisitBlock(), System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter.VisitBlock(), System.Linq.Expressions.Interpreter.QuoteInstruction.ExpressionQuoter.VisitCatchBlock(), System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter.VisitCatchBlock(), System.Linq.Expressions.Interpreter.QuoteInstruction.ExpressionQuoter.VisitLambda< T >(), and System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter.VisitLambda< T >().