Upgrade to Pro — share decks privately, control downloads, hide ads and more …

C# 7.0 - What's New (G2B TechEd Brno, 2017)

C# 7.0 - What's New (G2B TechEd Brno, 2017)

Syntax Enhancements for C# 7.0

Christian Nagel

February 06, 2017
Tweet

More Decks by Christian Nagel

Other Decks in Programming

Transcript

  1. History of C# • OO & Component Oriented 1.0 •

    Generics 2.0 • LINQ 3.0 • Dynamic 4.0 • Async 5.0 • Roslyn & Many Improvements 6.0
  2. Christian Nagel  Training  Coaching  Consulting  Microsoft

    MVP  thinktecture  www.cninnovation.com
  3. What’s Needed?  Separation of Functionality and State  Immutable

    Objects   Functional Programming can help
  4. C# 6 Features for Functional Programming  Using Static 

    Property Enhancements – Initialization, Read-Only, Getter-Only  Expression Bodied Methods  Exception Filters  String Interpolation  Null Conditional Operator
  5. C# 7.0 Syntax Enhancements  Digit Separators and Binary Literals

     Out Var, Ref Local and Ref Return  Local Functions  Expression Syntax Everywhere  Pattern Matching  Tuples and Deconstruction
  6. Why a new .NET?  Open Source  Multi-Platform 

    Modern Patterns  Faster Innovations
  7. Versions  Long Term Support Releases (LTS)  Current Releases

    Version Release Date Patch Support Level Support End .NET Core 1.1 Nov-16, 2016 1.1.0 Current Current v.next + 3 months .NET Core 1.0 Jun-27, 2016 1.0.3 LTS LTS v.next + 12 months
  8. .NET Standard  Create Libraries with .NET Standard  Use

    it from different .NET Platforms  Replaces Portable Libraries  1.4 – UWP, .NET Core 1.0, .NET 4.6.1 – 13,501 APIs  2.0 – UWP vnext, .NET Core 2.0, .NET 4.6.1 – 32,638 APIs  Compatibility Shim – Reference .NET Framework Libraries
  9. Summary  C# is a Multi-Paradigm Language  Influences from

    Functional Programming  Major new Features – Tuples and Deconstruction – Pattern Matching
  10. Images Copyright  Violin © Beyla Balla  Ladder to

    the Sky © Louise Reach  Diversity working people © Vladimir Mucibabic  Code Coding Programming Sire © Rawpixelimages  Growing Plant © Kateleigh  Problem Solving Series © Pablo631  Fireworks over Brno © Olga Langerova  http://www.dreamstime.com