MKMadhu Kumariintechkeys.hashnode.dev·Oct 11, 2024 · 5 min readC# : Mastering in Dependency InjectionMastering Dependency Injection (DI) in C# is crucial for building flexible, maintainable, and testable applications. It allows you to decouple the components of your system and promote better software design. Let's dive into how DI works in C#, its b...00
MKMadhu Kumariintechkeys.hashnode.dev·Oct 3, 2024 · 3 min readC# : Constants vs Readonly FieldsIn C#, both constants and readonly fields are used to store values that should not change after assignment, but they differ in how and when their values are set, as well as how they are handled by the compiler. Understanding these differences is key ...00
MKMadhu Kumariintechkeys.hashnode.dev·Sep 26, 2024 · 5 min readLINQ Best Practices for Senior .NET Developers with Simple ExamplesCertainly! Here are some best practices for using LINQ effectively, tailored for senior .NET developers, complete with simple examples. 1. Use Method Syntax vs. Query Syntax Wisely Choose the syntax that best fits your scenario. Method syntax is ofte...00
MKMadhu Kumariintechkeys.hashnode.dev·Sep 23, 2024 · 1 min readExpression-bodied Member and Field DeclarationA significant difference between the two declarations in C#: 1. Expression-bodied Member: public string Name => "C#"; This defines a read-only property called Name. It uses an expression-bodied member syntax, meaning you can only get its value, no...00
MKMadhu Kumariintechkeys.hashnode.dev·Sep 23, 2024 · 3 min readC# Asynchronous ProgrammingAsynchronous programming is a programming paradigm that allows a program to initiate tasks that can run concurrently without blocking the execution flow of the main thread. In this model, operations such as I/O requests, network calls, or other time-...00