Ejemplo n.º 1
0
    private static void PopulateAssemblyCache()
    {
        IList <string> userAssemblyPaths = ImmediateWindow.GetUserAssemblyPaths();

        foreach (string item in Directory.GetFiles((Application.dataPath + "/Managed/") ?? "", "*.dll"))
        {
            userAssemblyPaths.Add(item);
        }
        ImmediateWindow.m_Assemblies = new Assembly[userAssemblyPaths.Count];
        for (int j = 0; j < userAssemblyPaths.Count; j++)
        {
            ImmediateWindow.m_Assemblies[j] = Assembly.LoadFile(userAssemblyPaths[j]);
        }
    }