public static Type[] GetPluginTypes <T>(this Assembly assembly) { return(PluginFramework.GetPluginTypes <T>(assembly)); }
/// <summary>Returns an array of types assignable from the specified type found in assemblies located in the same directory as this assembly.</summary> /// <param name="type">The <see cref="T:System.Type" /> from which returned types must be derived from. Typically an interface.</param> /// <returns>An array of <see cref="T:System.Type" /> objects located in the same directory as this assembly that derive from the specified <see cref="T:System.Type" />.</returns> public static Type[] GetPluginTypes(Type baseType) { //string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetFilePath()); //return PluginFramework.GetPluginTypes(path, baseType); return(PluginFramework.GetPluginTypes(Assembly.GetExecutingAssembly(), baseType)); }