fixes TypeCache lookup speed and errors (#95)
This commit is contained in:
parent
e97d2cb131
commit
f8f372ccb9
26 changed files with 101 additions and 109 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using Server.Utilities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Server.Factions
|
||||
|
|
@ -56,7 +57,7 @@ namespace Server.Factions
|
|||
{
|
||||
Assembly asm = asms[i];
|
||||
TypeCache tc = AssemblyHandler.GetTypeCache(asm);
|
||||
Type[] types = tc.Types;
|
||||
Type[] types = tc.Types.ToArray();
|
||||
|
||||
for (int j = 0; j < types.Length; ++j)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue