예제 #1
0
        /// <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));
        }
예제 #2
0
 /// <summary>
 /// Add label to the label stack
 /// </summary>
 public void PushLabel(int mplsLabel)
 {
     MplsLabels.Add(mplsLabel);
 }