Пример #1
0
 private static ArrayInitializerExpression Clone(ArrayInitializerExpression expression)
 {
     var aie = new ArrayInitializerExpression();
     foreach (var item in expression.Items)
         aie.Items.Add(Clone(item));
     return aie;
 }
Пример #2
0
        public virtual void Visit(ArrayInitializerExpression arrayInitializerExpression)
        {
            Write("{").WriteSpace();
            for (int i = 0; i < arrayInitializerExpression.Items.Count; i++)
            {
                var expression = arrayInitializerExpression.Items[i];
                if (i > 0) Write(",").WriteSpace();

                VisitDynamic(expression);
            }

            Write("}");
        }