private IEnumerable<string> getPlugins(string dir) { if (!Directory.Exists(dir)) return new string[] {}; return Directory.GetFiles(dir); }