Is it possible to output the command-line used to build a project in Visual Studio?

Now that Whidbey has been out in Beta for more than a few months, it seems worth revisiting some frequently asked questions which have different (better?) answers now. In Everett (v7.1) the answer used to be No. However, in Whidbey (v8.0), the answer is Yes (and No). For the yes part of the answer, after… Read more

Why does C#’s iterators feature spit out a class definition instead of a struct definition?

Q: Why does C#’s iterators feature spit out a class definition instead of a struct definition?   The iterators feature in C# generates classes that implement the enumerators required. This is detailed in the C# Specification. Why doesn’t it use structs, which would be more efficient.   A:   There are two reasons.   (1)… Read more

Why don’t nullable relational operators return bool? instead of bool?

Q: Why don’t nullable relational operators return “bool?” instead of “bool“? Nullable types are a new feature of C# 2.0. When dealing with nullable types, if you write the following: int? i = 15;int? j = 16; the type of i == j is a normal bool, rather than a bool? (ie nullable bool). Why?… Read more