Talk:C Sharp 4.0

From Wikipedia, the free encyclopedia
Jump to: navigation, search
          This article is of interest to the following WikiProjects:
WikiProject Computing / Software / CompSci (Rated Start-class, Mid-importance)
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Start-Class article Start  This article has been rated as Start-Class on the project's quality scale.
 Mid  This article has been rated as Mid-importance on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Software.
Taskforce icon
This article is supported by WikiProject Computer science (marked as Low-importance).
 
WikiProject Microsoft / .NET (Rated Start-class)
WikiProject icon This article is within the scope of WikiProject Microsoft, a collaborative effort to improve the coverage of Microsoft on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Start-Class article Start  This article has been rated as Start-Class on the project's quality scale.
 ???  This article has not yet received a rating on the project's importance scale.
Taskforce icon
This article is supported by WikiProject .NET (marked as Mid-importance).
 

Why so much COM[edit]

Why does this page have so much of an emphasis on COM? There is a large community of C# developers that have nothing to do with COM. COM might be useful for explaning motivation, but the reliance on COM to describe C# functionality seems unnecessarily confusing. For example, I've been using C# for 8 years and do not recall ever seeing any reference to COM in the C# spec (although there could be a few). - ATBS 14Aug09 —Preceding unsigned comment added by 71.112.25.123 (talk) 06:28, 15 August 2009 (UTC)

Optional ref Keyword when using COM[edit]

Should the example `int x = 0;Increment(ref x);` have the ref in it? It seems to be the opposite of what's stated in the description. Db26 (talk) 01:54, 11 September 2009 (UTC)

Covariance and contravariance[edit]

This section is identical to the same section in the C# Syntax page.
See its talk page for a discussion on recommended improvements that could also apply to the section here.

-- Forbin1 (talk) 19:49, 27 May 2010 (UTC)

Passed vs Default Optional Parameter[edit]

I've not yet worked with C# 4.0, nor do I have ready access to a compiler for it, but why would "void Increment(ref int x, int dx = 1){} Increment(ref x, 2);" cause dx to take a value of 3? Wouldn't dx take the passed value of 2? Some explanation would help here. Macavity (talk) 16:42, 25 May 2012 (UTC)