You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
using Apewer;
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
namespace Apewer.Run
|
|
{
|
|
|
|
class Program
|
|
{
|
|
|
|
public static string[] Arguments = null;
|
|
|
|
static void Main(string[] args)
|
|
{
|
|
Arguments = args;
|
|
foreach (var type in ClassUtility.GetTypes(Assembly.GetExecutingAssembly()))
|
|
{
|
|
if (type.Equals(typeof(Program))) continue;
|
|
if (!type.IsClass) continue;
|
|
if (!type.IsPublic) continue;
|
|
Console.Title = type.FullName;
|
|
Console.WriteLine("New " + type.FullName);
|
|
|
|
#if DEBUG
|
|
Activator.CreateInstance(type);
|
|
#else
|
|
try
|
|
{
|
|
Activator.CreateInstance(type);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.WriteLine(ex.GetType().FullName);
|
|
Console.WriteLine(ex.ToString());
|
|
}
|
|
#endif
|
|
|
|
Console.WriteLine();
|
|
}
|
|
|
|
Console.WriteLine("end");
|
|
Console.ReadKey();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|