public PluginAppBase() { var ppas = GetType().GetCustomAttributes(typeof(PluginAppAttribute), true); if (ppas.Length != 0) { attr = (PluginAppAttribute)ppas[0]; } }