DEV Community

Leandro Torres
Leandro Torres

Posted on • Edited on

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

Top comments (1)

Collapse
 
vinibeloni profile image
Vinícius Beloni

Muito bom!!!