Skip to content

ReflectionTypeLoadException #2

@jnoel-d2

Description

@jnoel-d2

Though rare, if your working with a library that was built against something other than say 3.5 you'll see this exception thrown which will prevent the drop down list from populating anything.

Quick solution is just to add the following to the FilterTypes method:

            Type[] typeArray = null;
            try
            {
                typeArray = assembly.GetTypes();
            }
            catch(System.Reflection.ReflectionTypeLoadException e)
            {
                Debug.Log("Types could not be extracted from assembly:" + e.Message);
            }
            if (typeArray == null)
            {
                return;
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions