コード例 #1
0
ファイル: ParsingScript.cs プロジェクト: EnzoGrubisa/cscs_wpf
        public async Task <List <Variable> > GetFunctionArgsAsync(char start = Constants.START_ARG,
                                                                  char end   = Constants.END_ARG)
        {
            bool            isList;
            List <Variable> args = await Utils.GetArgsAsync(this,
                                                            start, end, (outList) => { isList = outList; });

            return(args);
        }
コード例 #2
0
        public static async Task <List <string> > GetFunctionArgsAsync(ParsingScript script)
        {
            bool            isList;
            List <Variable> args = await Utils.GetArgsAsync(script,
                                                            Constants.START_ARG, Constants.END_ARG, (outList) => { isList = outList; });

            List <string> result = new List <string>();

            for (int i = 0; i < args.Count; i++)
            {
                result.Add(args[i].AsString());
            }
            return(result);
        }