question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Built-in support for TextWriter implementations

See original GitHub issue

Currently you cannot directly use StringWriter with ZString as StringWriter accepts regular StringBuilder. I created helper ZStringWriter for Orchard Core. Would it make sense to offer ZStringWriter (UTF-16) and Utf8ZStringWriter out of the box?

If you think it’s a viable option I could offer a PR, just tell me desired names for the classes and namespace.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
neuecccommented, Apr 23, 2021

ZStringWriter for StringWriter, I think it’s a good and intuitive name. The implementation is also good, I hadn’t thought of that idea.

If you give me a PR, I would love to accept it. I think we should keep the name as proposed and use the top-level namespace (Cysharp.Text).

0reactions
lahmacommented, Apr 30, 2021

Thank you for being so reactive!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextWriter Class (System.IO)
The StreamWriter class derives from TextWriter and provides implementations of the members for writing to a stream. The following example shows how to...
Read more >
How to serialize to the given TextWriter instance using ...
There is no built-in way to serialize directly to a TextWriter using System.Text.Json as of .NET 6. For confirmation: In Try the new...
Read more >
io — Core tools for working with streams
Source code: Lib/io.py Overview: The io module provides Python's main facilities for dealing with various types of I/O. There are three main types...
Read more >
C# Interface: Define, Implement and Use (With Examples)
An interface can contain declarations of methods, properties, indexers, and events. Default interface methods with implementation body are supported from C# 8.0 ...
Read more >
Custom operators | TensorFlow Lite
Since the TensorFlow Lite builtin operator library only supports a limited number of TensorFlow operators, not every model is convertible.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found