Пример #1
0
        public static string firstScript_Invoke(this TM_UserData userData)
        {
            var scriptFile = userData.firstScript_FileLocation();

            if (scriptFile.fileExists())
            {
                var assembly = scriptFile.fileContents().compileCodeSnippet();
                if (assembly.isNull())
                {
                    "[secretDataScript_Invoke] couldn't compile script file: {0}".format(scriptFile);
                }
                else
                {
                    var result = assembly.firstMethod().invoke().str();
                    "[secretDataScript_Invoke] execution result: {0}".info(result);
                    return(result);
                }
            }
            return(null);
        }