Exemple #1
0
        private Expression ParseConcat(Type Desired = null)
        {
            ConsumeWS();
            Expression C1;
            char       ch;

            C1 = ParseAdditive();
            do
            {
                ConsumeWS();
                ch = Read()[0];
                switch (ch)
                {
                case '&':
                    C1 = Expression.Call(
                        typeof(string).GetRuntimeMethod("Concat", new Type[] { typeof(string), typeof(string) }),
                        new Expression[] { C1.ConvertToString(),
                                           ParseAdditive().ConvertToString() });
                    continue;
                }
                SeekRelative(-1);
                break;
            } while (!EOL);
            return(C1);
        }