diff options
| author | Fuwn <[email protected]> | 2025-10-30 17:01:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-10-30 17:01:14 -0700 |
| commit | 5cdde428a7f966f17f0a94eca7b94fbf1e499838 (patch) | |
| tree | 5f94122032752e2561009ef1c5e5b6641c5fb73c /MorgSimulator/Reader/ReaderDecorator.cs | |
| parent | refactor(diagrams): Move present diagrams to assignment folder (diff) | |
| download | cst276-5cdde428a7f966f17f0a94eca7b94fbf1e499838.tar.xz cst276-5cdde428a7f966f17f0a94eca7b94fbf1e499838.zip | |
feat: Implement Assignment 2 functionality
Diffstat (limited to 'MorgSimulator/Reader/ReaderDecorator.cs')
| -rw-r--r-- | MorgSimulator/Reader/ReaderDecorator.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/MorgSimulator/Reader/ReaderDecorator.cs b/MorgSimulator/Reader/ReaderDecorator.cs new file mode 100644 index 0000000..38dc1e6 --- /dev/null +++ b/MorgSimulator/Reader/ReaderDecorator.cs @@ -0,0 +1,21 @@ +#nullable enable +namespace MorgSimulator.Reader +{ + public abstract class ReaderDecorator(Reader reader) : Reader + { + protected Reader _reader = reader; + + public override string? ReadLine() + { + return _reader.ReadLine(); + } + + public override bool EndOfStream => _reader.EndOfStream; + + public override void Close() + { + _reader.Close(); + } + } +} +#nullable disable |