Great stuff!
I know some of these are common (apologies if others have suggested them)
but I'm not sure what heading some of them would go under: If you want
answers that you can just edit/correct, I'll be happy to provide...
- what's the difference between using cast syntax and the 'as' operator?
(C# as a language)
- how do I use an alias for a namespace or class? (C# as a language)
- why doesn't C# have checked exceptions? (C# as a language??)
- why are struct constructors in C# required to have at least one argument?
(C# as a language)
- how can I show an int as as string of 1's and 0's
- why does C# return an int when you add two bytes/shorts/sbytes/ushorts
together?
- how can I speed up P/Invoke calls made through C#? (I'm thinking of the
SuppressUnmanagedCodeSecurityAttribute to avoid the stack walk here, but
maybe there are many more ways)
- why doesn't calling Initialize() on a reference-type array fill in the
array with objects?
- How can I implement a *global* hook in C#? (got the idea from the bottom
of here:
http://support.microsoft.com/?kbid=318804)
- What are the benefits of strongly naming my assembly?
- How do I tell C# what kind of literal number I want? (f, L, U etc) (C# as
a language)
- What are static constructors for and how do they work?
- Why can't I overload methods on return type alone? (C# as a language)
- Why can't I put constants (or enums) in interfaces? (IIRC, this is
something you can do in Java?) (C# as a language)
- What operators can I overload in C#? (C# as a language)
- Why can't I overload the ___ operator (= seems to come up)? (C# as a
language)
- What's the difference between the ref and out modifiers on parameters? (C#
as a language)
- What's the difference in compiling with /checked+ and /checked-
- I have many VS.NET C# projects that I want to compile into a single
assembly. How can I do this?
- What free tools are available to help me develop with C#?
- What is the difference between the && and & and || and | operators on
boolean expressions?
Okay, I know some are very newb, but I think an FAQ is just for that
purpose.
I'll probably have more later
Richard