Exemplo n.º 1
0
        internal static void FormatObjectAsPlainText(FormatContext context, object value, TextWriter writer)
        {
            using var swriter = Formatter.CreateWriter();
            Formatter.FormatTo(value, context, swriter, PlainTextFormatter.MimeType);
            var text = swriter.ToString();

            FormatStringAsPlainText(text, writer);
        }