Ejemplo n.º 1
0
        static AssemblyHelper()
        {
            string rootPath   = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
            var    assemblies = Directory.GetFiles(rootPath, "*.dll")
                                .Where(x => !new FileInfo(x).Name.StartsWith("System.") &&
                                       !new FileInfo(x).Name.StartsWith("Microsoft."))
                                .Select(x => Assembly.LoadFrom(x))
                                .Where(x => !x.IsDynamic)
                                .ToList();

            assemblies.ForEach(aAssembly =>
            {
                try
                {
                    AllTypes.AddRange(aAssembly.GetTypes());
                    AllAssemblies.Add(aAssembly);
                }
                catch
                {
                }
            });
        }
Ejemplo n.º 2
0
 public void GetDefaults(DeltinScript deltinScript)
 {
     AllTypes.AddRange(CodeType.DefaultTypes);
     AllTypes.Add(new Pathfinder.PathmapClass(deltinScript));
     AllTypes.Add(new Pathfinder.PathResolveClass());
 }