godot/modules/mono/glue/GodotSharp/GodotSharp/Core/ReflectionUtils.cs

using System;
using System.Linq;

#nullable enable

namespace Godot;

internal class ReflectionUtils
{
    public static Type? FindTypeInLoadedAssemblies(string assemblyName, string typeFullName)
    {
        return AppDomain.CurrentDomain.GetAssemblies()
            .FirstOrDefault(a => a.GetName().Name == assemblyName)?
            .GetType(typeFullName);
    }
}