/// <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; }
/// <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); }