/// <summary> /// Iterates through all the items in the collection and attempts to cast the items to the type T. This is an alternative to supporting the for-each statement. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="container"></param> /// <param name="action"></param> public static void Enumerate <T>(this CollectionContainer_I <T> container, Action <T> action) { XCollectionContainers.Enumerate(container, action); }
/// <summary> /// Iterates through all the items in the collection and attempts to cast the items to the type T. This is an alternative to supporting the for-each statement. /// </summary> public static void Enumerate(this CollectionContainer_I container, Action <object> action) { XCollectionContainers.Enumerate(container, action); }