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