/// <summary>Gets a value that indicates whether the collection contains the specified <see cref="KeyFrame{T}" />. </summary> /// <returns>true if the collection contains keyFrame; otherwise, false.</returns> /// <param name="item">The <see cref="KeyFrame{T}" /> to locate in the collection.</param> public bool Contains(KeyFrame <T> item) { ReadPreamble(); return(_keyFrames.Contains(item)); }
/// <summary> /// Searches for the specified <see cref="KeyFrame{T}" /> and returns the zero-based index of the first /// occurrence within the entire collection. /// </summary> /// <returns> /// The zero-based index of the first occurrence of keyFrame within the entire collection, if found; otherwise, /// -1. /// </returns> /// <param name="item">The <see cref="KeyFrame{T}" /> to locate in the collection.</param> public int IndexOf(KeyFrame <T> item) { ReadPreamble(); return(_keyFrames.IndexOf(item)); }