我通常在开发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
发布评论