コード例 #1
0
        /// <summary>
        /// Sets the search paths used by the engine for loading files when a script wants
        /// to import or require another file of code.
        /// </summary>
        /// <exception cref="NotSupportedException">The language doesn't allow to set search paths.</exception>
        public void SetSearchPaths(ICollection <string> paths)
        {
            ContractUtils.RequiresNotNull(paths, "paths");
            ContractUtils.RequiresNotNullItems(paths, "paths");

            _language.SetSearchPaths(paths);
        }
コード例 #2
0
        /// <summary>
        /// Sets the search paths used by the engine for loading files when a script wants
        /// to import or require another file of code.
        /// </summary>
        /// <exception cref="NotSupportedException">The language doesn't allow to set search paths.</exception>
        public void SetSearchPaths(ICollection <string> paths)
        {
            ContractUtils.RequiresNotNull(paths, nameof(paths));
            ContractUtils.RequiresNotNullItems(paths, nameof(paths));

            LanguageContext.SetSearchPaths(paths);
        }