Java's PipedReader / PipedWriter equivalents in C#?
- by devoured elysium
I have defined a Pipe class in Java, making use of PipedReader and PipedWriter. I am now trying to port this same class to C#. Is it possible to accomplish the same as shown in the following code in C#?
public final class Pipe {
private final PipedReader pipedReader = new PipedReader();
private final PipedWriter pipedWriter = new PipedWriter();
public Pipe() {
pipedWriter.connect(pipedReader);
}
...
}
I am guessing what I'll want to use in C# for PipedReader and PipedWriter will be StreamReader and StreamWriter?
Is there something like a connect() method?
Thanks