ServerTool.cs 873 B

123456789101112131415161718192021222324252627
  1. using System.Reflection;
  2. using NetServerCore.Attribute;
  3. namespace NetServerCore.Tool;
  4. public static class ServerTool
  5. {
  6. // public static List<Type> FindLogicAtt(int groid)
  7. // {
  8. // List<Type> list = new List<Type>();
  9. // Assembly[] ass = AppDomain.CurrentDomain.GetAssemblies();
  10. // for (int i = 0; i < ass.Length; i++)
  11. // {
  12. // Assembly assembly = ass[i];
  13. // Type[] allType = assembly.GetTypes();
  14. // for (int j = 0; j < allType.Length; j++)
  15. // {
  16. // Type type = allType[j];
  17. // LogicEnrollAtt logicEnrollAtt = type.GetCustomAttribute<LogicEnrollAtt>();
  18. // if (logicEnrollAtt != null && logicEnrollAtt.group == groid)
  19. // {
  20. // list.Add(type);
  21. // }
  22. // }
  23. // }
  24. // }
  25. }