using System.Reflection; using NetServerCore.Attribute; namespace NetServerCore.Tool; public static class ServerTool { // public static List FindLogicAtt(int groid) // { // List list = new List(); // Assembly[] ass = AppDomain.CurrentDomain.GetAssemblies(); // for (int i = 0; i < ass.Length; i++) // { // Assembly assembly = ass[i]; // Type[] allType = assembly.GetTypes(); // for (int j = 0; j < allType.Length; j++) // { // Type type = allType[j]; // LogicEnrollAtt logicEnrollAtt = type.GetCustomAttribute(); // if (logicEnrollAtt != null && logicEnrollAtt.group == groid) // { // list.Add(type); // } // } // } // } }