vb System.IO.Stream.CopyTo类(方法)实例源码

下面列出了vb System.IO.Stream.CopyTo 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.I   
' Create the streams.
Dim destination As New MemoryStream()

Using source As FileStream = File.Open("c:\temp\data.dat", _
                                       FileMode.Open)
    Console.WriteLine("Source length: {0}", source.Length.ToString())

    ' Copy source to destination.
    source.CopyTo(destination)

End Using
Console.WriteLine("Destination length: {0}", destination.Length.ToString())


问题


面经


文章

微信
公众号

扫码关注公众号