public static void AddAttachedResources(this IResource parent, List <IResource> resourcesToAdd) { foreach (ResourceBase resource in resourcesToAdd) { parent.AddAttachedResource(resource); } }