/// <summary> /// Return and remove last label from label stack /// </summary> public int PopLabel() { long result = (MplsLabels[MplsLabels.Count - 1]); MplsLabels.RemoveAt(MplsLabels.Count - 1); // Couldn't use int.Parse(), dunno perché return(Convert.ToInt32(result)); }
/// <summary> /// Add label to the label stack /// </summary> public void PushLabel(int mplsLabel) { MplsLabels.Add(mplsLabel); }