コード例 #1
0
 public BlockMarker(SourceWriter parent)
 {
     _parent = parent;
 }
コード例 #2
0
 /// <summary>
 /// Compile code built up by using an ISourceWriter to a new assembly in memory
 /// </summary>
 /// <param name="write"></param>
 /// <returns></returns>
 public Assembly Generate(Action <ISourceWriter> write)
 {
     using var writer = new SourceWriter();
     write(writer);
     return(Generate(writer.Code()));
 }