コード例 #1
0
ファイル: Les2Printer.cs プロジェクト: dadhi/ecsharp
 public static string PrintLiteral(ILNode literal)
 {
     MaybeInitThread();
     _staticWriter.Reset();
     _staticStringBuilder.Length = 0;
     _staticPrinter.PrintLiteralCore(literal);
     return(_staticStringBuilder.ToString());
 }
コード例 #2
0
ファイル: Les2Printer.cs プロジェクト: saisirisha1835/ecsharp
 public static string PrintLiteral(object value, NodeStyle style = 0)
 {
     _staticWriter.Reset();
     _staticStringBuilder.Length = 0;
     if (!_staticPrinter.PrintLiteralCore(value, style))
     {
         return(null);
     }
     return(_staticStringBuilder.ToString());
 }