/// <summary> /// Retrieves an array of <see cref="PVCSCommandArgument"/> objects in this collection. /// </summary> /// <returns>An array of command arguments in this collection.</returns> public PVCSCommandArgument[] ToArray() { PVCSCommandArgument[] retVal = new PVCSCommandArgument[List.Count]; for (int i = 0; i < retVal.Length; ++i) { retVal[i] = this[i]; } return(retVal); }
/// <summary> /// Compares two PVCS command arguments based on their position. /// </summary> /// <param name="o">The PVCS command argument to compare to <c>this</c>.</param> /// <returns> /// Less than zero if this instance is less than <paramref name="o"/>. /// Zero if this instance is equal to <paramref name="o"/>. /// Greater than zero if this instance is greater than <paramref name="o"/>. /// </returns> public int CompareTo(object o) { PVCSCommandArgument arg = o as PVCSCommandArgument; if (arg == null) { throw new ArgumentException("o is not a PVCSCommandArgument"); } return(Position.CompareTo(arg.Position)); }
/// <see cref="IList.Add(object)"/> public void Add(PVCSCommandArgument commandArgument) { List.Add(commandArgument); }
/// <see cref="IList.Contains(object)"/> public bool Contains(PVCSCommandArgument commandArgument) { return(List.Contains(commandArgument)); }
/// <see cref="IList.Remove(object)"/> public void Remove(PVCSCommandArgument commandArgument) { List.Remove(commandArgument); }
/// <see cref="IList.Insert(int, object)"/> public void Insert(int index, PVCSCommandArgument commandArgument) { List.Insert(index, commandArgument); }
/// <see cref="IList.IndexOf(object)"/> public int IndexOf(PVCSCommandArgument commandArgument) { return(List.IndexOf(commandArgument)); }
/// <see cref="IList.IndexOf(object)"/> public int IndexOf(PVCSCommandArgument commandArgument) { return List.IndexOf(commandArgument); }
/// <see cref="IList.Add(object)"/> public void Add(PVCSCommandArgument commandArgument) { List.Add(commandArgument); }
/// <summary> /// Retrieves an array of <see cref="PVCSCommandArgument"/> objects in this collection. /// </summary> /// <returns>An array of command arguments in this collection.</returns> public PVCSCommandArgument[] ToArray() { PVCSCommandArgument[] retVal = new PVCSCommandArgument[List.Count]; for (int i = 0; i < retVal.Length; ++i) { retVal[i] = this[i]; } return retVal; }
/// <see cref="IList.Contains(object)"/> public bool Contains(PVCSCommandArgument commandArgument) { return List.Contains(commandArgument); }
/// <see cref="IList.Remove(object)"/> public void Remove(PVCSCommandArgument commandArgument) { List.Remove(commandArgument); }
/// <see cref="IList.Insert(int, object)"/> public void Insert(int index, PVCSCommandArgument commandArgument) { List.Insert(index, commandArgument); }