C Sharp (programming language): Difference between revisions

Content deleted Content added
Future development: typo.; citation template
m show "syntactic sugar"
Line 297:
 
=== Local variable type inference ===
Local variable [[type inference]]: <code>var xsource lang= "hellocsharp";</code>var isx interchangeable= withnew Dictionary<code>string, x = "hello"List<float>>();</codesource>. More than just [[syntactic sugar]], this feature is required for the declaration of anonymous typed variables.
is interchangeable with <source lang="csharp">Dictionary<string, List<float>> x = new Dictionary<string, List<float>>;</source>
More than just [[syntactic sugar]], this feature is required for the declaration of anonymous typed variables. Also it simplifies refactoring.
 
=== Lambda expressions ===