From 94fd752ba36bf028df4124390f942b4ec491b676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E5=96=B5=E5=A4=A7=E4=BA=BA?= Date: Mon, 3 Dec 2018 11:18:23 +0800 Subject: [PATCH] resolved #70 --- src/CatLib.Core/Support/Stream/CombineStream.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/CatLib.Core/Support/Stream/CombineStream.cs b/src/CatLib.Core/Support/Stream/CombineStream.cs index fb7be4b..a0fedb9 100644 --- a/src/CatLib.Core/Support/Stream/CombineStream.cs +++ b/src/CatLib.Core/Support/Stream/CombineStream.cs @@ -90,7 +90,20 @@ public override long Position /// /// 是否是可读的 /// - public override bool CanRead => true; + public override bool CanRead + { + get + { + foreach (var stream in streams) + { + if (!stream.CanRead) + { + return false; + } + } + return true; + } + } /// /// 是否是可写的