Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3604920
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:03:32+00:00 2026-05-18T21:03:32+00:00

I have defined a Pipe class in Java, making use of PipedReader and PipedWriter

  • 0

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?

Edit

So, my goal is to implement a (little) Pipe&Filter framework.
My idea would be to create a Pipe class and Filter classes, so that when I need to implement some system using a Pipe&Filter architecture style, I’ll code it against this little framework I am using.
Each filter would run on its own thread.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:03:33+00:00Added an answer on May 18, 2026 at 9:03 pm

    I’m not sure if this is exactly what you are looking for, but there is a tutorial on using .Net pipes here. This will only work with .Net 3.5+.

    EDIT:

    There are examples on MSDN about using anonymous pipes. See this link.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined the following class using COM to use the IGroupPolicyObject using C#.NET:
I have defined CSS in MasterPage so that all pages can use the same
I have defined a ConfigurationProperty class, which is basicly a key-value pair (with key
I have defined a rectangle drawable like this: <shape xmlns:android=http://schemas.android.com/apk/res/android android:shape=rectangle> <corners android:radius=4dip/> <solid
There is a static class Pipe, defined in C++ header that I'm including. The
I am trying to use the following functions defined in mpusbapi.h HANDLE(*MPUSBOpen)(DWORD instance, //Input
I have defined an ArrayList in my main class where I am loading data
I have defined an interface in C++, i.e. a class containing only pure virtual
I have a string in my function defined like .. char *key=anyvalue; Now I
I have defined three classes: class Animal < ActiveRecord::Base end class Cat < Animal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.