Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# discussion: Redundant class names?
Message
De
29/07/2008 11:57:42
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01334856
Message ID:
01334943
Vues:
16
I am reallly enjoying it. Now that I am more immersed in actually coding and rewriting an app, it has become clear to me that understanding from training and trying to solve business problems are two very different things. The real training comes during the rewrite and the coding process. Very exciting actually.


>>>I thought they originally didn't want 'var'. Doesn't it go against the C# design principle of strong typing?
>>>
>>
>>Not at all. It's still strongly-typed. It's just that now the compiler and Intellisense is smart enough to infer the type based on the return type. When you use var you aren't saying "I don't won't know it's type until later", but instead, "Hey, compiler, figure out the correct type for me". "var" was actually necessary to allow for anonymous types, which was necessary for LINQ. It's kind of interesting if you look at the language elements added to 3.5 how many of them were required in order to get LINQ working.
>
>The whole language is still fascinating to me. I know I will be discovering tidbits about it for years to come.
>
>Do you have a suggestion for the next thread in my little C# series? How about generics?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform