/// <summary> /// Returns the zero-based index of a given <see cref="ObjectID"/> in the collection. /// </summary> /// <param name="id">The <paramref name="id"/> to locate in the collection.</param> /// <returns>The zero-based index of the <paramref name="id"/>, if found; otherwise, -1.</returns> public int IndexOf(ObjectID id) { if (id != null) { return(_dataStrategy.IndexOf(id)); } else { return(-1); } }
public virtual int IndexOf(ObjectID objectID) { ArgumentUtility.CheckNotNull("objectID", objectID); return(_wrappedData.IndexOf(objectID)); }