C#2.0泛型和集合 [英] C# 2.0 Generics and collections

查看:60
本文介绍了C#2.0泛型和集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当C#2.0到达时,System.Collections.Specialized.StringCollection将

变为过时。框架是否仍然包含这个类,或者将会是一个C#1.X到2.0的转换实用程序,它会改变

System.Collections.Specialized.StringCollection到

System.Collections.ArrayList< string>和ArrayList到ArrayList< object>

??


Gary

Hi

When C# 2.0 arrives System.Collections.Specialized.StringCollection will
become "obsolete". Will the framework still contain this class, or will
there be a C# 1.X to 2.0 conversion utility that will change
System.Collections.Specialized.StringCollection to
System.Collections.ArrayList <string> and ArrayList to ArrayList<object>
??

Gary

推荐答案

SADLY(可以这么说)旧的非通用收藏品仍在那里。


这只是保持,可能,现有的错误。


Thomas Tomiczek

THONA Software&咨询有限公司

(微软MVP C#/。NET)


" Gary van der Merwe" < GA ***** @ hotmail.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...
SADLY (so to say) the old non-generic collections are still there.

Which just keeps, porapbly, existing bugs around.

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)

"Gary van der Merwe" <ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
嗨<当C#2.0到达时,System.Collections.Specialized.StringCollection将变为过时。框架是否仍然包含这个类,或者是否会有一个C#1.X到2.0的转换实用程序,它会将System.Collections.Specialized.StringCollection改为
System.Collections.ArrayList< ;串GT;和ArrayList到ArrayList< object>
??

Hi

When C# 2.0 arrives System.Collections.Specialized.StringCollection will
become "obsolete". Will the framework still contain this class, or will
there be a C# 1.X to 2.0 conversion utility that will change
System.Collections.Specialized.StringCollection to
System.Collections.ArrayList <string> and ArrayList to ArrayList<object>
??

Gary






是否有新的通用收藏品?


Gary


" Thomas Tomiczek(MVP)" <吨******** @ thona-consulting.com>。写在消息

新闻:O7 ************** @ TK2MSFTNGP09.phx.gbl ...
Hi

Are there new generic collections?

Gary

"Thomas Tomiczek (MVP)" <t.********@thona-consulting.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
SADLY(所以说旧的非通用收藏品仍然存在。

其中只保留了可能存在的错误。

Thomas Tomiczek
THONA Software&咨询有限公司
(微软MVP C#/。NET)

Gary van der Merwe < GA ***** @ hotmail.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...
SADLY (so to say) the old non-generic collections are still there.

Which just keeps, porapbly, existing bugs around.

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)

"Gary van der Merwe" <ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

<当C#2.0到达时,System.Collections.Specialized.StringCollection将变为过时。框架是否仍然包含这个类,或者是否会有一个C#1.X到2.0的转换实用程序,它会将System.Collections.Specialized.StringCollection改为
System.Collections.ArrayList< ;串GT;和ArrayList到
ArrayList< object> ??

Gary
Hi

When C# 2.0 arrives System.Collections.Specialized.StringCollection will
become "obsolete". Will the framework still contain this class, or will
there be a C# 1.X to 2.0 conversion utility that will change
System.Collections.Specialized.StringCollection to
System.Collections.ArrayList <string> and ArrayList to ArrayList<object> ??

Gary




他们应该做的是将它们标记为在编译器警告中过时,然后

建议使用Generics集合。


如果它在ECMA规范中必须得到支持。 (然后再说那个规格

还不是最终的。有人可以提交C#ECMA委员会的提案吗?)


为什么VB不适合ECMA给我如果它没有,它的专有封闭语言

并且不会在这里使用,毕竟他们只是在运行VB6直到生命结束

现在是2005年3月31日的时候VB6 =正式死亡。 (来自

support.microsoft.com)


在标准化之前,这些语言不会在这里使用。


Gary van der Merwe < GA ***** @ hotmail.com>在留言中写道

news:uu ************** @ TK2MSFTNGP10.phx.gbl ...
What they should do is label them as obsolete in a compiler warning and then
recommend using the Generics collection.

If its in the ECMA spec its gotta be supported. (then again the spec there
isnt final yet. Can anybody submit proposals for the C# ECMA comittee?)

Why isnt VB going for ECMA, to me if its not , its propriety closed language
and wont be used here, after all they just are runing VB6 until end of life
now which is 31-Mar-2005 when VB6 = offically dead. (from
support.microsoft.com)

Until its standardized, those languages wont be used here.

"Gary van der Merwe" <ga*****@hotmail.com> wrote in message
news:uu**************@TK2MSFTNGP10.phx.gbl...


是否有新的通用收藏品?

Gary

Thomas Tomiczek(MVP)" <吨******** @ thona-consulting.com>。在消息中写道
新闻:O7 ************** @ TK2MSFTNGP09.phx.gbl ...
Hi

Are there new generic collections?

Gary

"Thomas Tomiczek (MVP)" <t.********@thona-consulting.com> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
SADLY(可以这么说)旧的非 - 通用收藏品仍然存在。

其中只保留了可能存在的错误。

Thomas Tomiczek
THONA Software&咨询有限公司
(微软MVP C#/。NET)

Gary van der Merwe < GA ***** @ hotmail.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...
SADLY (so to say) the old non-generic collections are still there.

Which just keeps, porapbly, existing bugs around.

Thomas Tomiczek
THONA Software & Consulting Ltd.
(Microsoft MVP C#/.NET)

"Gary van der Merwe" <ga*****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

<当C#2.0到达时,System.Collections.Specialized.StringCollection
将变为过时。框架是否仍然包含这个类,或者
会有一个C#1.X到2.0的转换实用程序,它会将System.Collections.Specialized.StringCollection改为
System.Collections.ArrayList< ;串GT;和ArrayList到ArrayList< object> ??

Gary
Hi

When C# 2.0 arrives System.Collections.Specialized.StringCollection will become "obsolete". Will the framework still contain this class, or will there be a C# 1.X to 2.0 conversion utility that will change
System.Collections.Specialized.StringCollection to
System.Collections.ArrayList <string> and ArrayList to ArrayList<object> ??

Gary





这篇关于C#2.0泛型和集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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