Пример #1
0
 /// <summary>
 /// Adds a value to the <see cref="Parameter{T}"/>.
 /// </summary>
 /// <param name="item">The object to add to the <see cref="Parameter{T}"/>.</param>
 public void Add(ParameterValue <T> item)
 {
     values.Add(item);
 }
Пример #2
0
 /// <summary>
 /// Inserts an item into the <see cref="Parameter{T}"/> at the specified index.
 /// </summary>
 /// <param name="index">The zero-based index where the item should be inserted.</param>
 /// <param name="item">The object to insert into the <see cref="Parameter{T}"/>.</param>
 public void Insert(int index, ParameterValue <T> item)
 {
     values.Insert(index, item);
 }
Пример #3
0
 /// <summary>
 /// Removes the first occurrence of a specific value from the <see cref="Parameter{T}"/>.
 /// </summary>
 /// <param name="item">The value to remove from the <see cref="Parameter{T}"/>.</param>
 /// <returns>true if the value was successfully removed from the <see cref="Parameter{T}"/>; otherwise, false. This method also returns false if the value is not found in the original <see cref="Parameter{T}"/>.</returns>
 public bool Remove(ParameterValue <T> item)
 {
     return(values.Remove(item));
 }
Пример #4
0
 /// <summary>
 /// Determines the index of a specific item in the <see cref="Parameter{T}"/>.
 /// </summary>
 /// <param name="item">The object to locate in the <see cref="Parameter{T}"/>.</param>
 /// <returns>The index of the item (if the item is found in the list); otherwise, -1.</returns>
 public int IndexOf(ParameterValue <T> item)
 {
     return(values.IndexOf(item));
 }
Пример #5
0
 /// <summary>
 /// Determines whether the <see cref="Parameter{T}"/> contains a specific value.
 /// </summary>
 /// <param name="item">The object to locate in the <see cref="Parameter{T}"/>.</param>
 /// <returns>true if the value is found in the <see cref="Parameter{T}"/>; otherwise, false.</returns>
 public bool Contains(ParameterValue <T> item)
 {
     return(values.Contains(item));
 }