Ejemplo n.º 1
0
 public static string PrintLiteral(ILNode literal)
 {
     MaybeInitThread();
     _staticWriter.Reset();
     _staticStringBuilder.Length = 0;
     _staticPrinter.PrintLiteralCore(literal);
     return(_staticStringBuilder.ToString());
 }
Ejemplo n.º 2
0
 public static string PrintLiteral(object value, NodeStyle style = 0)
 {
     _staticWriter.Reset();
     _staticStringBuilder.Length = 0;
     if (!_staticPrinter.PrintLiteralCore(value, style))
     {
         return(null);
     }
     return(_staticStringBuilder.ToString());
 }