> Markdown version of [/videos/388-5-features-that-help-you-get-the-most-out-of-c-10?t=225](https://www.wearedevelopers.com/videos/388-5-features-that-help-you-get-the-most-out-of-c-10?t=225). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # 5 features that help you get the most out of C# 10 Ditch the repetitive boilerplate and streamline your .NET workflow. C# 10 introduces five practical features that drastically reduce clutter. Discover how to write cleaner, more maintainable code. - **Speakers:** [Louëlla Creemers](https://www.wearedevelopers.com/@louella-creemers) - **Event:** World Congress 2022 - **Published:** June 15, 2022 - **Duration:** 12:52 - **URL:** https://www.wearedevelopers.com/videos/388-5-features-that-help-you-get-the-most-out-of-c-10 ## Summary This presentation introduces five highly practical features from C# 10 designed to significantly reduce boilerplate, enhance code readability, and streamline the overall developer workflow. To improve the initial scripting experience, modern CLI applications in .NET now support top-level statements, allowing developers to immediately execute logic without the overhead of defining explicit namespaces, classes, or a main method. The session emphasizes the utility of records, which function as immutable, value-based types that simplify data comparison and output debugging. For streamlined validation, developers can replace repetitive null-checking nested blocks with the concise `ArgumentNullException.ThrowIfNull()` method. Furthermore, implementing global using directives inherently eliminates the need to declare recurring namespaces across multiple files in architectures like MVC. Finally, C# 10 refines object evaluation through extended property patterns, enabling clean dot notation for nested properties during matching processes rather than relying on clunky, heavily nested structures. Altogether, these language enhancements directly empower engineering teams to write inherently cleaner, more maintainable programs while maintaining a resilient foundation for future version updates. **Keywords:** c# 10 development features, .net cli application setup, c# top-level statements, c# record types, immutable data structures, value-based memory classification, null parameter validation, argumentnullexception reduction, global using directives, namespace duplication avoidance, extended property patterns, nested pattern matching, clean code methodologies, mvc namespace management ## Chapters 1. **Simplifying CLI applications with top-level statements** (02:27) — How top-level statements eliminate boilerplate namespaces and classes in C# 10 scripts. 1. **Working with records for immutability and value equality** (03:45) — Why records provide a better alternative to classes for value comparisons and data formatting. 1. **Streamlining null checks with argument null exceptions** (07:32) — How the ThrowIfNull helper method reduces repetitive boilerplate code when validating parameters. 1. **Centralizing namespace imports utilizing global usings** (09:04) — How moving repeated imports to a dedicated global usage file keeps codebases cleaner. 1. **Cleaning up nested object comparisons with extended property patterns** (10:55) — How accessing nested properties via dot notation simplifies condition checks. ## Related Moments - [Overview of modern C# feature selections](https://www.wearedevelopers.com/videos/693-modern-c-a-dive-into-the-community-s-most-loved-new-features) (from "Modern C#: A Dive into the Community's Most Loved new Features.") - [Adopting new C# features and tracking updates](https://www.wearedevelopers.com/videos/693-modern-c-a-dive-into-the-community-s-most-loved-new-features) (from "Modern C#: A Dive into the Community's Most Loved new Features.") - [Integrating new language features for readable async code](https://www.wearedevelopers.com/videos/387-using-java-17-latest-features-in-real-world-projects) (from "Using Java 17 latest features in real world projects") - [Introduction to systems programming and performance in .NET](https://www.wearedevelopers.com/videos/100138-is-it-still-c-practical-systems-programming-with-net-war-stories-included) (from "Is it still C#? Practical systems programming with .NET (war stories included)") - [Implementing modern language feature advancements carefully alongside readability](https://www.wearedevelopers.com/videos/441-c-in-constrained-environments) (from "C++ in constrained environments") - [Exploring object-oriented syntax features and the type system](https://www.wearedevelopers.com/videos/442-dart-a-language-believed-dead-experiences-a-new-bloom) (from "Dart - a language believed dead, experiences a new bloom") ## Related Articles - [Visual Studio Code Shortcuts for Cleaning Up Your Code](https://www.wearedevelopers.com/magazine/410-visual-studio-code-shortcuts-for-cleaning-up-your-code) - [Using Java 17 latest features in real world projects](https://www.wearedevelopers.com/magazine/121-using-java-17-latest-features-in-real-world-projects) - [Liuba Gonta and Yuliya Khadasevic - GitHub Copilot Beyond the Basics - 10 Ways to Elevate Your Coding](https://www.wearedevelopers.com/magazine/490-liuba-gonta-and-yuliya-khadasevic-github-copilot-beyond-the-basics-10-ways-to-elevate-your-coding) - [Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3](https://www.wearedevelopers.com/magazine/663-devs-vs-marketers-cobol-and-copilot-make-live-coding-easy-and-more-the-best-of-live-2025-part-3) ## Related Jobs - [Senior Software Engineer, Enterprise Products](https://www.wearedevelopers.com/jobs/ext/1841248-senior-software-engineer-enterprise-products) at **GitHub** - [Senior Software Engineer](https://www.wearedevelopers.com/jobs/ext/15942-senior-software-engineer) at **GitHub** - [Senior Software Engineer,Billing](https://www.wearedevelopers.com/jobs/ext/1991843-senior-software-engineer-billing) at **GitHub** - [Staff Software Engineer, Copilot Experiences](https://www.wearedevelopers.com/jobs/ext/164361-staff-software-engineer-copilot-experiences) at **GitHub** - [Cloud Foundations Team](https://www.wearedevelopers.com/jobs/ext/1483289-cloud-foundations-team) at **GitHub** - [Principal Software Engineer, Enterprise AI Platform](https://www.wearedevelopers.com/jobs/ext/1467292-principal-software-engineer-enterprise-ai-platform) at **GitHub**