Exemplo n.º 1
0
 public static void Deserialize(SourcePackage upk, string filename, List <AstDocument> resultAsync)
 {
     using (var r = AstReader.Open(upk, filename))
     {
         while (r.BaseStream.Position < r.BaseStream.Length)
         {
             var ast = r.ReadDocument();
             lock (resultAsync)
                 resultAsync.Add(ast);
         }
     }
 }
Exemplo n.º 2
0
 public static AstBlock DeserializeBlock(SourcePackage upk, string filename)
 {
     using (var r = AstReader.Open(upk, filename))
         return(r.ReadBlock());
 }