public static string GetFallBackDisplayName(this PluginContainer pluginContainer) { string className = pluginContainer.GetClassName(); if (!string.IsNullOrEmpty(className)) { return(className); } string virtualPath = pluginContainer.GetVirtualPath(); if (!string.IsNullOrEmpty(virtualPath)) { return(virtualPath.GetFileName()); } return(""); }