This example creates a stream, possibly to connect to a different backing store.
public abstract class MyStream: Stream{ // Here, the user would provide their own implementations of the methods on the Stream abstract base class. They would only need to implement one set of read/write methods as the other implementation is inherited from Stream. // The constructor should be typed to take a Stream, and the class should extend Stream. }