---
title: "EchoStream Class"
url: "https://osherove.com/blog/2003/5/1/echostream-class.md"
canonical: "https://osherove.com/blog/2003/5/1/echostream-class.html"
published: "2003-05-01T11:01:00"
updated: "2003-05-01T11:01:00"
tags: [".Net Original"]
author: "Roy Osherove"
description: "This Very nice EchoStream class that lets you map two stream object in which you read into one stream, and the input to that stream is automatically written to the other. It can also do the same for writing - Writing to…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# EchoStream Class

By Roy Osherove May 1, 2003 In [.Net Original](https://osherove.com/blog/category/net-original)

**Historical article** · Originally published May 1, 2003; technical details may be outdated.

This Very nice [EchoStream class](http://www.codeproject.com/useritems/echostream.asp) that lets you map two stream object in which you read into one stream, and the input to that stream is automatically written to the other. It can also do the same for writing - Writing to one stream writes the same to the other stream. basic T-stream functionality. very nice and elegant.

## More in .Net Original

[All posts in .Net Original](https://osherove.com/blog/category/net-original)

- May 4, 2003

    ### [Blue Bricks](https://osherove.com/blog/2003/5/4/blue-bricks.html)

- May 4, 2003

    ### [Typed Datasets Are Not Always The Answer](https://osherove.com/blog/2003/5/4/typed-datasets-are-not-always-the-answer.html)

- May 1, 2003

    ### [More VS.NET Tips & Tricks](https://osherove.com/blog/2003/5/1/more-vsnet-tips-amp-tricks.html)

- Apr 30, 2003

    ### [A VS.NET 2003 Registry Tweaker Don Could Use](https://osherove.com/blog/2003/4/30/a-vsnet-2003-registry-tweaker-don-could-use.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
