Leave a Reply

5 Comments on "New Features in C# 7.0"

Notify of
avatar

Josh
Guest
Josh
22 days 16 hours ago

Looks good.

Andrew Hanlon
Guest
Andrew Hanlon
22 days 22 hours ago

Unless this has changed in the release version (I hope it hasn't) than it seems there is a mistake within pattern matching example where the variable 'i' is used outside its if level scope. The roslyn pattern matching spec says:

The scope of a pattern variable is as follows:

– If the pattern appears in the condition of an if statement, its scope is the condition and controlled statement of the if statement, but not its else clause.

If this is correct than the i variable should not be in scope after the if.

Onurg
Guest
Onurg
23 days 4 hours ago

Good, but looks like baby steps towards being a more functional language. I still can’t understand what good are these features without things like records or algebraic data types. I guess time will tell.

Jon
Guest
Jon
23 days 7 hours ago

Why would Item start at 1 and not 0?

Juanpa
Guest
Juanpa
23 days 21 hours ago

Magnificent, I realized that I have to add the System.ValueTuple nuget reference, any other in any case?. Is there any issue deploying to the store with all the new stuff? Hope not.

wpDiscuz