Skip to content

Commit c38b2a1

Browse files
author
喵喵大人
authored
resolved #182
1 parent 1c884f6 commit c38b2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CatLib.Core/Support/Util/Extension/StreamExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public static long AppendTo(this Stream source, Stream destination)
4040
/// <returns>总共传输了多少数据</returns>
4141
public static long AppendTo(this Stream source, Stream destination, byte[] buffer)
4242
{
43-
Guard.Requires<NullReferenceException>(source != null);
44-
Guard.Requires<NullReferenceException>(destination != null);
43+
Guard.Requires<ArgumentNullException>(source != null);
44+
Guard.Requires<ArgumentNullException>(destination != null);
4545

4646
long result = 0;
4747
int read;

0 commit comments

Comments
 (0)