Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

What's New in C# 8

52 views

Published on

The long-awaited support for safer handling of null values in reference types is finally coming with C# 8. But that's not the only large new feature. The session covers all of its new features: expanded support for pattern matching, Asynchronous streams, ranges and indexes, static local functions and more.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

What's New in C# 8

  1. 1. 1 Novosti v C# 8 D a m i r A r h , R a z u m d . o . o . M i c r o s o f t M V P @ D a m i r A r h
  2. 2. 2 Trenutna razpoložljivost . N E T C o r e 3 . 0 P r e v i e w V i s u a l S t u d i o 2 0 1 9 ( P r e v i e w ) V i s u a l S t u d i o C o d e
  3. 3. 3 C # 8 v V S 2 0 1 9
  4. 4. 4 .NET Core 3.0 Xamarin Mono Unity P o d p o r a v p r e o s t a l i h M i c r o s o f t o v i h o k o l j i h . N E T Načrtovana podpora Zanašanje na razrede v .NET Standard 2.1 Potrebne spremembe v izvajalnem okolju (CLR) C # 8 n e b o p o d p r t v o g r o d j u . N E T 4 . 8
  5. 5. 5 Ničelne vrednosti referenčnih tipov P o z g l e d u v r e d n o s t n i h t i p o v N i č e l n e v r e d n o s t i m o r a j o b i t i e k s p l i c i t n o d o v o l j e n e S t a t i č n a a n a l i z a o p o z a r j a n a n e p r e v e r j e n o d o s t o p a n j e Selektivno ali na nivoju projekta P o t r e b e n e k s p l i c i t e n v k l o p f u n k c i o n a l n o s t i
  6. 6. 6 N i č e l n e v r e d n o s t i
  7. 7. 7 Razširjeno ujemanje vzorcev R a z š i r i t e v f u n k c i o n a l n o s t i i z C # 7 V z o r c i s t e r k a m i P o z i c i j s k i v z o r c i V z o r c i z l a s t n o s t m i t i p o v I z r a z „ s w i t c h ”
  8. 8. 8 U j e m a n j e v z o r c e v
  9. 9. 9 Asinhroni tokovi I t e r a t o r j i / g e n e r a t o r j i : I E n u m e r a b l e , I E n u m e r a t o r, y i e l d A s i n h r o n e m e t o d e : a s y n c / a w a i t A s i n h r o n i t o k o v i : I A s y n c E n u m e r a b l e , I A s y n c E n u m e r a t o r, y i e l d
  10. 10. 10 A s i n h r o n i t o k o v i
  11. 11. 11 Privzete metode vmesnika V m e s n i k l a h k o v k l j u č u j e i m p l e m e n t i r a n e m e t o d e P o d o b n o k o t a b s t r a k t n i r a z r e d i ž e v e s č a s N a k n a d n o d o d a j a n j e m e t o d v v m e s n i k e K o m p o z i c i j a b r e z v e č k r a t n e g a d e d o v a n j a ( t . i . „ t r a i t ” )
  12. 12. 12 P r i v z e t e m e t o d e
  13. 13. 13 Območja in indeksi N o v a s i n t a k s a z a o b m o č j e v r e d n o s t i I m p l i c i t n a i n d e k s n a s i n t a k s a z a n j o N o v a s i n t a k s a z a i n d e k s v s e z n a m u I m p l i c i t n a i n d e k s n a s i n t a k s a z a n j o
  14. 14. 14 O b m o č j a , i n d e k s i
  15. 15. 15 Ključne novosti N i č e l n e v r e d n o s t i r e f e r e n č n i h t i p o v R a z š i r j e n o u j e m a n j e v z o r c e v A s i n h r o n i t o k o v i P r i v z e t e m e t o d e v m e s n i k a O b m o č j a i n i n d e k s i
  16. 16. 16 http://bit.ly/DncCSharp8InVS2019 N e w C # 8 F e a t u r e s i n V i s u a l S t u d i o 2 0 1 9 http://bit.ly/DotNetBlogCSharp V i s u a l C # A r c h i v e s | . N E T B l o g Viri http://bit.ly/RoslynLanguageRoadmap L a n g u a g e F e a t u r e S t a t u s https://www.dotnetcurry.com/csharpbook/ T h e A b s o l u t e l y A w e s o m e B o o k o n C # a n d . N E T
  17. 17. 17

×