Files
TEngine/Assets/GameScripts/DotNet/Core/Helper/AssemblyHelper.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

24 lines
567 B
C#

using System;
using System.Collections.Generic;
using System.Reflection;
namespace ET
{
public static class AssemblyHelper
{
public static Dictionary<string, Type> GetAssemblyTypes(params Assembly[] args)
{
Dictionary<string, Type> types = new Dictionary<string, Type>();
foreach (Assembly ass in args)
{
foreach (Type type in ass.GetTypes())
{
types[type.FullName] = type;
}
}
return types;
}
}
}