DEV Community

Leandro Torres
Leandro Torres

Posted on • Updated 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!👊


us Now you can support me by buying a coffee
pt Agora você pode me apoiar comprando um café
☕😊👇

Buy Me A Coffee

Top comments (1)

Collapse
 
vinibeloni profile image
Vinícius Beloni

Muito bom!!!