/// <summary>
/// Marks an element addition event.
/// </summary>
/// <typeparam name="T">The generic type parameter of the collection.</typeparam>
/// <param name="mementor">The mementor object.</param>
/// <param name="collection">The collection object.</param>
/// <param name="element">The element being added.</param>
public static void ElementAdd <T>(this Mementor mementor,
IList <T> collection, T element)
{
if (mementor.IsTrackingEnabled)
{
mementor.MarkEvent(new ElementAdditionEvent <T>(collection, element));
}
}