AppDomain
Issue #4
new
Hi, in my project I have multiple linked assemblies and since the editor linked assembly didn't have references that I needed, the code couldn't find the types I wanted.
I solved it like this (in ClassTypeReferencPropertyDrawner):
private static List<Type> GetFilteredTypes(ClassTypeConstraintAttribute filter) {
var types = new List<Type>();
var excludedTypes = (ExcludedTypeCollectionGetter != null ? ExcludedTypeCollectionGetter() : null);
foreach (var referencedAssembly in AppDomain.CurrentDomain.GetAssemblies())
{
FilterTypes(Assembly.Load(referencedAssembly.GetName()), filter, excludedTypes, types);
}
types.Sort((a, b) => a.FullName.CompareTo(b.FullName));
return types;
}