Presentation is loading. Please wait.

Presentation is loading. Please wait.

Developer Productivity: What’s New in C# 6

Similar presentations


Presentation on theme: "Developer Productivity: What’s New in C# 6"— Presentation transcript:

1 Developer Productivity: What’s New in C# 6
Bill Wagner | Author, Consultant Anthony D. Green | Managed Languages Program Manager

2 Meet Bill Wagner | @billwagner
Author Effective C# More Effective C# Passion for informing and inspiring software developers to write better code be more productive

3 Meet Anthony D. Green Microsoft Program Manager Focus on Language APIs
Managed Languages Team Focus on Language APIs Syntactic and semantic analysis tools Diagnostics and Refactorings

4 Developer Productivity: What's New in C# 6
Getting Started with PowerShell 01 | C# features add productivity and conciseness 02 | Data Transfer Object Enhancements 03 | Handling Strings More Easily 04 | Exceptions and Error Handling Improvements 05 | Adopting C# 6

5 02 | Support for Data Transfer Objects
Bill Wagner | Author, Consultant Anthony D. Green | Managed Languages Program Manager

6 Module Overview Read only Properties Dictionary Initializers

7 Data Transfer Object Support
Key | Distributed Apps require Data Transfer Object types Key | Behavior and Data Storage are Separated Key | Minimize Ceremony for Data Transfer Objects

8 Features for Data Transfer Objects
public class Point { public Point(double x, double y) X = x; Y = y; } public double X { get; } public double Y { get; } var webErrors = new Dictionary<int, string> { [404] = "Page not Found", [302] = "Page moved, but left a forwarding address.", [500] = "The web server can't come out to play today." };

9 Read only Properties

10 https://github.com/BillWagner/MVA-CSharp6 Read only Properties
demo Read only Properties

11 Dictionary Initializers

12 https://github.com/BillWagner/MVA-CSharp6 Dictionary Initializers
demo Dictionary Initializers

13 Features for Data Transfer Objects
public class Point { public Point(double x, double y) X = x; Y = y; } public double X { get; } public double Y { get; } var webErrors = new Dictionary<int, string> { [404] = "Page not Found", [302] = "Page moved, but left a forwarding address.", [500] = "The web server can't come out to play today." };

14


Download ppt "Developer Productivity: What’s New in C# 6"

Similar presentations


Ads by Google