In the latest .NET versions, argument validation has been streamlined with new helper extension methods that make it even easier and more expressive to throw argument exceptions. Some of these methods were first introduced in .NET 6 but have been enhanced with subsequent releases. Here are some of the latest ways to handle argument validation … Continue reading Parameter Validation Using ArgumentExceptions
Tag: .NET
Configure Visual Studio to Use File-Scoped Namespaces on New Classes
Filed-scoped namespaces were a new feature added to C# 10. File-scoped namespaces simplify the organization of code by allowing you to declare the namespace at the file level rather than wrapping each type in its own namespace block. This can lead to more readable and concise code with one less layer of curly braces in … Continue reading Configure Visual Studio to Use File-Scoped Namespaces on New Classes
Assembly Dependency Viewer
Found a great new tool to view an assembly's runtime dependency graph for .NET full and Core. It will show you the dependent assemblies and versions for any .NET libraries (.dll) and applications (.exe). It's great for debugging assembly load failures in your app.