예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }