Code Monkey home page Code Monkey logo

csharp-features-succinctly's Introduction

C# Features Succinctly

This is the companion repo for C# Features Succinctly by Dirk Strauss. Published by Syncfusion.

cover

1 - The History of C#

C# is continuing to evolve and improve with each major release of the language. As the C# team is innovating and adding features to C#, they share their thought process around the design of C# with the community.

2 - C# 7 Features Recap

To appreciate what C# 8.0 has to offer developers, it is important that we revisit some of the features available in C# 7.

  • out variables

  • Discards

  • Tuples

  • Pattern matching

  • Local functions

  • Expression-bodied members

  • Generalized async return types

3 - C# 8.0 Features

With the release of C# 8.0 developers have been given more features and enhancements to improve their codebases with. I say improve, because C# 8.0 introduces many very nice language features such as pattern matching enhancements.

  • Default interface methods

  • Nullable reference types

  • Asynchronous streams

  • Asynchronous disposable

  • Indices and ranges

  • Switch expressions

  • Readonly members

  • Using declarations

  • Static local functions

  • Disposable ref structs

  • Null-coalescing assignment

  • Unmanaged constructed types

  • Stackalloc in nested expressions

  • Enhancement of interpolated verbatim strings

  • Enabling C# 8 in any .NET project

4 - The Future of C# and C# 9

  • Top-level programs

  • Relational and logical patterns

  • Target-typed new expressions

  • Init-only properties

  • Init accessors and readonly fields

  • Records

  • More C# 9.0 goodies

5 - .NET Productivity Features in Visual Studio

  • Developer PowerShell inside Visual Studio

  • The Visual Studio Git Window

  • Drag and drop projects to add a reference

  • Searching Visual Studio

  • Code analyzers

  • File header support in .editorconfig

  • C# Language resources

    • C# language reference
    • C# language proposals
    • C# language design meetings
    • C# language design

Looking for more Succinctly titles?

Check out the entire library of more than 190 Succinctly ebooks at https://www.syncfusion.com/ebooks.

csharp-features-succinctly's People

Contributors

synccontent avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.