DEV Community

Leandro Torres
Leandro Torres

Posted on • Edited on

6 1

C# 10 features

O Oleg Kyrylchuk fez um post no Twitter muito interessante sobre algumas novidades do C# 10. Vou reproduzir por aqui para registrar.

🎯 Constant interpolated strings

alt text

🎯 Extended property patterns

alt text

🎯 File scoped namespaces

alt text

🎯 Global usings

alt text

🎯 Assignment and declaration in the same deconstruction

alt text

🎯 Sealed when overriding ToString

alt text

🎯 Record struct and class declarations

alt text

🎯 Struct vs Record struct

alt text

🎯 Parameterless struct constructors

alt text

🎯 Lambdas with attributes

alt text

🎯 Explicit return type in lambdas

alt text

🎯 AsyncMethodBuilder attribute applying to the method

alt text

🎯 Expression 'with' in structs

alt text

🎯 Expression 'with' in anonymous types
alt text

Referências
twitter - Oleg Kyrylchuk

All my tweets about C# 10 features in one thread.


Até a próxima! 👊
☕😊 Agora você pode apoiar comprando um café para mim

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (1)

Collapse
 
vinibeloni profile image
Vinícius Beloni

Muito bom!!!

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay