Beispiel #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;
        }
Beispiel #2
0
 /// <summary>
 /// Remove the script engine by type
 /// </summary>
 /// <param name="engineType">The engine type</param>
 /// <param name="attr">The scriptengine attribute</param>
 internal static void RemoveScriptEngineFromType(ScriptEngineAttribute attr, Type engineType)
 {
     _engines.Remove(attr.TextName.ToLowerInvariant());
 }
Beispiel #3
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;
        }
Beispiel #4
0
 /// <summary>
 /// Remove the script engine by type
 /// </summary>
 /// <param name="engineType">The engine type</param>
 /// <param name="attr">The scriptengine attribute</param>
 internal static void RemoveScriptEngineFromType(ScriptEngineAttribute attr, Type engineType)
 {
     _engines.Remove(attr.TextName.ToLowerInvariant());
 }