okyrylchuk / csharp9_features

C# 9 features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C# 9 features

In this repo you can find examples from my tweet series in Twitter about C# 9 features.

Thread on Twitter https://twitter.com/okyrylchuk/status/1419393278320025600

Projects by features:

  1. Target-typed new expressions - ImprovedTargetTyping
  2. Target typed conditional ?: - ImprovedTargetTyping
  3. Init only setters - InitOnlySetters
  4. Covariant returns - CovariantReturns
  5. Top-level programs - TopLevelProgram
  6. Pattern matching - ImprovedPatternMatching
  7. Relational matching - ImprovedPatternMatching
  8. Pattern combinators - ImprovedPatternMatching
  9. Static anonymous functions - StaticAnonymousFunctions
  10. Attributes on local functions - AttributesOnLocalFunctions
  11. Lambda discard parameters - LambdaDiscardParameters
  12. Unconstrained Type Parameters - UnconstrainedTypeParameters
  13. Default constraint - DefaultConstraint
  14. Extended partial methods - ExtendedPartialMethods
  15. Extension 'GetEnumerator' support for 'foreach' loops - ExtensionGetEnumerator
  16. Native-sized integers - NativeSizedIntegers
  17. Function pointers - FunctionPointers
  18. Records - Records
  19. Records constructor and deconstructor - ConstructorsAndDeconstructorsInRecords
  20. Records and inheritance - RecordsAndInheritance

For more content you can follow me on Twitter @okyrylchuk

About

C# 9 features


Languages

Language:C# 100.0%