System.IO对战VisualBasic.FileIO [英] System.IO Versus VisualBasic.FileIO

查看:248
本文介绍了System.IO对战VisualBasic.FileIO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常在开发C#和感到很使习惯使用System.IO。最近,我跑过FileIO专注库,并已发现的一些优点(如发送项目到回收站)是相当不错的。特别是在程序我目前工作的。 我的问题是,是否System.IO出执行VisualBasic.FileIO ??

I typically develop in C# and am quite accustom to using System.IO. I recently ran across the FileIO library and have found that some of the advantages (such as sending an item to the recycle bin) are quite nice to have. Especially in the program I am currently working on. My question is, Does System.IO out perform the VisualBasic.FileIO??

我的节目,我正在写将信息TB的身价从字面上复制到服务器上塔。我想确保我不会丢失任何时间,由于我使用的库。

My program I am writing will be copying literally TB's worth of information onto server towers. I want to make sure I do not lose any time due to the library I am using.

感谢你在前进!

推荐答案

Microsoft.VisualBasic.FileIO 是建立在顶部 System.IO (大部分)。它应该是最快速的 System.IO 的事情有直接等同存在。在性能上的差异可以忽略不计呢。没有prevents你同时使用。如果有一个功能,您需要存在于 VisualBasic.FileIO System.IO 不存在,你应该可以使用 VisualBasic.FileIO 的版本,而不是滚动您自己。

Microsoft.VisualBasic.FileIO is built on top of System.IO (for the most part.) It should be at most as fast as System.IO for things that have direct equivalent there. The performance difference should be negligible anyway. Nothing prevents you from using both. If there's a function you need that exists in VisualBasic.FileIO and doesn't exist in System.IO, you should be using the VisualBasic.FileIO version rather than rolling your own.

这篇关于System.IO对战VisualBasic.FileIO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆