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

4736273aed82148d9d3c3ca192c1cd61?s=128

Christian Nagel

February 06, 2017
Tweet

More Decks by Christian Nagel

Other Decks in Programming

Transcript

  1. Christian Nagel @christiannagel www.cninnovation.com C# 7.0 – What’s New! plus

    .NET Core Intro PLATINUM PARTNER
  2. 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
  3. Agenda History of C# Goals of C# New Syntax with

    C# 7.0 Intro to .NET Core
  4. Christian Nagel  Training  Coaching  Consulting  Microsoft

    MVP  thinktecture  www.cninnovation.com
  5. None
  6. GOALS OF C#

  7. C# is a Multi-Paradigm Language!

  8. Typical Applications SQL Azure App Services WPF UWP Xamarin Storage

  9. What’s Needed?  Separation of Functionality and State  Immutable

    Objects   Functional Programming can help
  10. Functional Programming  Functions as 1st-Class  Avoiding State Mutation

  11. 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
  12. None
  13. NEW SYNTAX WITH C# 7.0

  14. SAMPLE CODING…

  15. 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
  16. None
  17. INTRO TO .NET CORE

  18. Why a new .NET?  Open Source  Multi-Platform 

    Modern Patterns  Faster Innovations
  19. Workloads  ASP.NET Core  Universal Windows Platform (UWP) 

    Xamarin.Forms
  20. 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
  21. .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
  22. Command Line  dotnet new  dotnet restore  dotnet

    build  dotnet run
  23. Summary  C# is a Multi-Paradigm Language  Influences from

    Functional Programming  Major new Features – Tuples and Deconstruction – Pattern Matching
  24. Questions?

  25. More Information (1)  https://dot.net  https://github.com/dotnet/csharplang  Sample Code:

     https://github.com/CNinnovation
  26. More Information (2)  https://github.com/ProfessionalCSharp  https://csharp.christiannagel.com  https://www.cninnovation.com 

    Training & Coaching
  27. Thank you!

  28. 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
  29. Děkuji za pozornost. www.gopas.cz www.G2BTeched.cz www.TechEd.cz