static TypeCache()
{
ShouldIgnoreAssemblyEvaluators = new List<Func<Assembly, bool>>();
ShouldIgnoreTypeEvaluators = new List<Func<Assembly, Type, bool>>();
#if NET
AppDomain.CurrentDomain.AssemblyLoad += OnAssemblyLoaded;
// Initialize the types of early loaded assemblies
lock (_lockObject)
{
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
foreach (var assembly in assemblies)
{
InitializeTypes(assembly);
}
}
#endif
}