什么是.NET中你最喜欢的功能? [英] What's your favorite feature in .NET?
问题描述
有很多的.NET功能。相关的一些语言,别人也会进行相关的框架本身具有访问/ DO /执行XYZ的能力。所以为了好玩,我想知道是什么的社区的喜爱,在功能的 .NET或ASP.NET 包含?
There are lots of features in .NET. Some language related, others will be related to the framework itself and having the ability to access/do/perform xyz. So for fun, I was wondering what the community's favorite features in .NET or ASP.NET include?
这是一个社会维基问题作为其主要表现为投票的目的,看看有什么样的反应存在对各方面的 .NET 的
This is a community wiki question as its mainly for polling purposes to see what kind of a response there is for all aspects of .NET
要具体,尝试包括一些有关它像一个code样本。
Be specific, try to include something about it like a code sample.
为例类别和主题:
- 在德国航空航天中心
- 的LINQ
- 防爆pressions
- 在WPF
- 泛型
- WCF
推荐答案
泛型。非常适合没有滚动你自己的容器类。可因为C#2.0。
Generics. Excellent for not rolling your own container classes. Available since C# 2.0 .
public T Remove<T>(T item) {
foreach (T t in this.list) {
if (t.equals(item)) {
list.delete(t);
return t;
}
}
return null;
}
这篇关于什么是.NET中你最喜欢的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!