public IEnumerable<EmbeddedScript> GetAllLocalizationEmbeddedScripts() { var scriptInfos = GetAllLocaleScriptInfo().Select(i => new EmbeddedScript(i.ScriptName, i.ScriptAsssembly)); foreach(var info in scriptInfos) yield return info; }