private static IEnumerable <ResourceReference> AllExtensionListReferences(this IList <Extension> ExtensionList) { var ReferenceResultList = new List <ResourceReference>(); foreach (Extension Ext in ExtensionList) { ReferenceResultList.AddRange(Ext.AllExtensionReferences()); } return(ReferenceResultList); }