任何人都有.NET Framework 1.0的outlookstorage类? [英] Any one have the outlookstorage class for .NET framework 1.0 ?

查看:119
本文介绍了任何人都有.NET Framework 1.0的outlookstorage类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从保存在硬盘上的.msg文件中提取附件,并使用收到的电子邮件日期保存附件。现在我正在使用一个名为OutlookStorage.Cs的开源类,我从这里下载了这个类。该课程适用于.net 2.0及以上版本。由于类使用了大量的泛型列表和LINQ的东西,我无法在.net 1.0中使用相同的类。有没有人有.net 1.0或c#代码来实现这个目标?



我尝试了什么:



我尝试通过将一些代码转换为1.0来尝试使用相同的类,但这实际上并不起作用。

I have to extract the attachments from a .msg file that saved on the harddisk and save the attachments with the email received date. Right now I am using an open source class called OutlookStorage.Cs which I've downloaded from here. That class works for me for .net 2.0 and above. Since class is using lots of generic lists and LINQ thing, I am unable to use the same class in .net 1.0. Does anyone have the class for .net 1.0 or c# code to achieve this?

What I have tried:

I have tried using the same class by converting some of the code to 1.0 and but that doesn't work really.

推荐答案

非常,非常不可能。

.NET V2于2007年发布 - 九年前,并对V1.0进行了大幅改进

任何人都不可能去有一个支持.NET V1的版本可以随时插入你的应用程序。

相反,我强烈建议你将你现有的应用程序升级到V2.0(或更高版本,那是现在已经很老了)并且使用Generics它可以提高代码的可读性和可靠性。从强类型集合返回到无类型ArrayList是代码质量方面的重要一步。转换不应该太困难 - 这完全取决于改进而不是删除现有设施。
Very, very unlikely.
.NET V2 was released in 2007 - nine years ago, and made massive improvements to V1.0
It is not likely that anyone is going to have a version that supports .NET V1 sitting around ready to be "bolted in" to your application.
Instead, I'd strongly recommend upgrading your existing app to V2.0 (or later, that's pretty old now) and using the Generics it allows as they improve both readability and reliability of code. Going from strongly typed collections back to an untyped ArrayList is a major step back in terms of code quality. The conversion shouldn't be too difficult - it's all about improvements rather than removing existing facilities.


这篇关于任何人都有.NET Framework 1.0的outlookstorage类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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