public static void Init(ICollection<object> collection) { if (collection == null || collection.Count == 0) { return; } foreach (object o in collection) { Init(o); } }