Exemplo n.º 1
0
 /// <summary>
 /// Determines whether [contains] [the specified value].
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns>
 ///     <c>true</c> if [contains] [the specified value]; otherwise, <c>false</c>.
 /// </returns>
 public bool Contains(DynamicNode value)
 {
     // If value is not of type Int16, this will return false.
     return(List.Contains(value));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Indexes the of.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public int IndexOf(DynamicNode value)
 {
     return(List.IndexOf(value));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Inserts the specified index.
 /// </summary>
 /// <param name="index">The index.</param>
 /// <param name="value">The value.</param>
 public void Insert(int index, DynamicNode value)
 {
     List.Insert(index, value);
     value.IsModified = true;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public int Add(DynamicNode value)
 {
     //value.IsModified = true;
     return(List.Add(value));
 }