Override CopyTo in MemoryStream (dotnet/coreclr#7131)
authorJames Ko <jamesqko@gmail.com>
Thu, 15 Sep 2016 11:37:41 +0000 (07:37 -0400)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 15 Sep 2016 11:37:41 +0000 (13:37 +0200)
commit9135c4125862ae2644b114a778883e7d34a62818
tree6d5c26c1c32fe70ee83d521df07d1a92530b21c8
parent6b5569290add0d324218348722d94d5f2e6048e4
Override CopyTo in MemoryStream (dotnet/coreclr#7131)

* Cache some virtual method calls in Stream.ValidateCopyToArguments
* Add override of Stream.CopyTo to MemoryStream

Commit migrated from https://github.com/dotnet/coreclr/commit/a62af3e824095dc11263f040705623f2e216165c
src/coreclr/src/mscorlib/src/System/IO/MemoryStream.cs
src/coreclr/src/mscorlib/src/System/IO/Stream.cs