示例#1
0
        /// <summary>
        /// Add a script engine from a type, uses ScriptEngineAttribute to populate informatin
        /// </summary>
        /// <param name="engineType">The engine type</param>
        /// <param name="attr">The scriptengine attribute</param>
        internal static void AddScriptEngineFromType(ScriptEngineAttribute attr, Type engineType)
        {
            ScriptEngineInfo engine = new ScriptEngineInfo();

            engine.textDescription = attr.TextName;
            engine.type            = engineType;

            _engines[attr.EngineName.ToLowerInvariant()] = engine;
        }
示例#2
0
        /// <summary>
        /// Add a script engine from a type, uses ScriptEngineAttribute to populate informatin
        /// </summary>
        /// <param name="engineType">The engine type</param>
        /// <param name="attr">The scriptengine attribute</param>
        internal static void AddScriptEngineFromType(ScriptEngineAttribute attr, Type engineType)
        {
            ScriptEngineInfo engine = new ScriptEngineInfo();
            engine.textDescription = attr.TextName;
            engine.type = engineType;

            _engines[attr.EngineName.ToLowerInvariant()] = engine;
        }