Learn how to write better C# code in 15 minutes | DEM515

Learn how to write better C# code in 15 minutes | DEM515

57.014 Lượt nghe
Learn how to write better C# code in 15 minutes | DEM515
C# continues to evolve to meet the needs of developers. This talk explores how key features introduced in the last few versions of C# work together to make your code simpler and faster. As just one example, collection expressions let you write simple code that is also fast, and params collections let you use them in more places. Seeing these and other recent C# features working together will equip you with the latest tools to streamline your coding experience. To learn more, please check out these resources: * https://aka.ms/build25/plan/LearnCSharp 𝗦𝗽𝗲𝗮𝗸𝗲𝗿𝘀: * Mads Torgersen * Jared Parsons 𝗦𝗲𝘀𝘀𝗶𝗼𝗻 𝗜𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: This is one of many sessions from the Microsoft Build 2025 event. View even more sessions on-demand and learn about Microsoft Build at https://build.microsoft.com DEM515 | English (US) | Developer Tools & .NET #MSBuild Chapters: 0:00 - C# Features Highlight: Pattern Matching, Records, and Collection Expressions 00:04:21 - Introduction to Using Patterns in Expressions 00:04:37 - Transition from 'is' Expressions to 'switch' Statements 00:06:36 - Compiler Optimizations with Patterns in Switch Statements 00:07:53 - Making Code Safer with Feedback 00:10:54 - Value Representation with Records 00:12:05 - Enhanced toString Functionality 00:13:24 - Detailed Explanation on Records and Parameters 00:14:49 - Collection Types and Their Handling