Esempio n. 1
0
        /// <summary>
        /// Modify a number element
        /// </summary>
        /// <param name="idx"></param>
        /// <param name="ne"></param>
        /// <remarks></remarks>
        public void Modify(int idx, NumberElement ne)
        {
            if (content == null)
                this.content = new List<NumberElement>();

            if (idx < this.content.Count)
                this.content[idx] = ne;
        }
Esempio n. 2
0
 /// <summary>
 /// Add a number element
 /// </summary>
 /// <param name="ne">The number element to add</param>
 /// <remarks></remarks>
 public void Add(NumberElement ne)
 {
     if (content == null)
         this.content = new List<NumberElement>();
     this.content.Add(ne);
 }