System.IO对战VisualBasic.FileIO

编程入门 行业动态 更新时间:2024-10-24 01:49:50
本文介绍了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

本文发布于:2023-11-09 22:58:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573667.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对战   IO   System   VisualBasic   FileIO

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!