Visual C#2008速成版 [英] Visual C# 2008 Express

查看:111
本文介绍了Visual C#2008速成版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中遇到一个基本问题.

我正在使用Visual C#2008 Express Edition
我有.net framework 3.5


我无权访问HashSet< t>课.

它位于System.Cores中包含的System.Collections.Generic中.

我在项目中包含对System.Core的引用,并且在我的课程中包含了Systems.Collections.Generic.

我拥有所有System.Collections.Generic类,除了HashSet.

I''m having a fairly basic problem with Visual Studio.

I''m using Visual C# 2008 Express Edition
I have .net framework 3.5


I have no access to HashSet<t> class.

It''s in System.Collections.Generic, which is included in System.Core.

I have included a reference to System.Core in my project, and I have included Systems.Collections.Generic in my class.

I have all of the System.Collections.Generic classes EXCEPT HashSet.

Anyone have any possible problems?

推荐答案

我不使用Express,但是它是在.NET 3.5中引入的,因此您应该拥有它. 试试这个:
1)作为解决方案的一部分,创建一个新项目-为简单起见,使其成为一个控制台应用程序,并确保它是.NET Framework 3.5版(全部位于添加项目对话框屏幕上)
2)在您的Main方法中,开始新行,然后键入Hash.

智能感知会列出HashSet<>吗?

按以下方式完成该行:
I don\''t use Express, but it was introduced at .NET 3.5 so you should have it.
Try this:
1) Create a new project as part of your solution - make it a Console App, for simplicity, and ensure it is .NET framework version 3.5 (this is all on the add project dialog screen)
2) In your Main method, start a new line, and type Hash.

Does intellisense list HashSet<>?

Complete the line as:
HashSet<string> hs = new HashSet<string>();



HashSet的语法颜色会更改吗?
如果不是,请右键单击单词HashSet-您是否有一个选项"Resolve \"?如果是这样,各种选项会怎样?

通过编辑您的原始问题或对此答案发表评论来进行响应-请勿使用添加答案按钮!



Does the syntax color change for HashSet?
If not, right click the word HashSet - do you have an option \"Resolve\"? If so, what happens with the various options?

Respond either by editing your original question, or by commenting on this answer - do not use the add answer button!


这篇关于Visual C#2008速成版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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