示例#1
0
 /// <summary>
 /// Returns C# source code for the given plan.
 /// The code is returns as a list of strings, one
 /// per line (each line contains a statement).
 /// </summary>
 public static ReadOnlyCollection<string> AsCSharpCode(Plan p)
 {
     if (p == null) throw new ArgumentNullException();
     CSharpGenVisitor v = new CSharpGenVisitor();
     v.Visit(p);
     return v.Code;
 }
示例#2
0
        /// <summary>
        /// Returns C# source code for the given plan.
        /// The code is returns as a list of strings, one
        /// per line (each line contains a statement).
        /// </summary>
        public static ReadOnlyCollection <string> AsCSharpCode(Plan p)
        {
            if (p == null)
            {
                throw new ArgumentNullException();
            }
            CSharpGenVisitor v = new CSharpGenVisitor();

            v.Visit(p);
            return(v.Code);
        }