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

◆ GetLabelPos()

int System.Reflection.Emit.ILGenerator.GetLabelPos ( Label lbl)
inlineprivate

Definition at line 218 of file ILGenerator.cs.

219 {
220 int labelValue = lbl.GetLabelValue();
221 if (labelValue < 0 || labelValue >= m_labelCount || m_labelList == null)
222 {
223 throw new ArgumentException(SR.Argument_BadLabel);
224 }
225 if (m_labelList[labelValue] < 0)
226 {
227 throw new ArgumentException(SR.Argument_BadLabelContent);
228 }
229 return m_labelList[labelValue];
230 }

References System.SR.Argument_BadLabel, System.SR.Argument_BadLabelContent, System.Reflection.Emit.Label.GetLabelValue(), System.Reflection.Emit.ILGenerator.m_labelCount, and System.Reflection.Emit.ILGenerator.m_labelList.

Referenced by System.Reflection.Emit.ILGenerator.BakeByteArray().