什么是System.Collections.Generic.List(Of String)类型 [英] What is System.Collections.Generic.List(Of String) type

查看:123
本文介绍了什么是System.Collections.Generic.List(Of String)类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我使用了来自 http://www.youtube.com/watch?v=eA-MeWKiPAw [ ^ ]在这里。



 Dim FileNames = TwainLibScanImages(,, My.Setting.Scan)

我怎么知道FileNames的类型?但是当我将鼠标悬停在它上面时它表示Dim FileNames As System.Collections.Generic.List(Of String)。



对我来说这是一种奇怪的类型。如何存储它返回到字符串类型的东西(它的文件位置路径)。当我尝试将它返回的值存储到String时,它总是会产生错误。 Plz help!

解决方案

这是一种通用类型,其中一种没有人能够承受不起。



在转到TWAIN和其他高级问题之前,我建议你学习.NET的语言和基础知识。因为你甚至不知道仿制药,所以你不能再进一步了解。您需要学习所有语言,而不仅仅是简单的片段。阅读本文:

http://msdn.microsoft.com/en-us /library/aa479859.aspx [ ^ ]。



-SA


了解更多关于框架中的泛型支持 -

http://msdn.microsoft.com/en-us/library/ ms172192.aspx [ ^ ]

.NET Generics in Nutshell [ ^ ]

泛型解释(.NET Framework versi)在2.0) [ ^ ]

Hi,

I used TwainLib.dll library from http://www.youtube.com/watch?v=eA-MeWKiPAw[^]Here.

Dim FileNames = TwainLibScanImages(, , My.Setting.Scan)

How can I know the type of FileNames? But when I hover over it and it state it is " Dim FileNames As System.Collections.Generic.List(Of String)".

It''s a weird type for me. How can I store the stuff (It''s file location path) it returned to a String Type. It''s always produce an error when i try to store the value it returned to a String. Plz help!

解决方案

This is a generic type, and one of those which no one can afford to be unaware of.

Before going to TWAIN and other advanced issues, I would advise you to learn the language and basics of .NET. As you don''t even know generics, you cannot move much further. You need to learn all the language, not just simple fragments. Read this:
http://msdn.microsoft.com/en-us/library/aa479859.aspx[^].

—SA


Read more about generics support in the framework -
http://msdn.microsoft.com/en-us/library/ms172192.aspx[^]
.NET Generics in a Nutshell[^]
Generics Explained (.NET Framework version 2.0)[^]


这篇关于什么是System.Collections.Generic.List(Of String)类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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