News

C# allows an abstract syntax tree of a function to be obtained at runtime via the Expression API: For a function to get the expression tree of a function argument instead of a compiled method, it ...
After years of trial and error, I found a handful of productivity methods that actually worked for me—and they might work for you too.
In C#, a class can declare virtual methods, properties, and indexers, and derived classes can override the implementation of these function members. The keyword virtual allows programmers to specify ...
Other exciting design patterns from this group are: Abstract Factory: Create families of related objects. For example, I build parsers for different file formats (e.g., JSON, XML, CSV). Check the ...
You can implement fluent interfaces in C# using method chaining, factory classes, and named parameters. I’ll have more to say about fluent interfaces and method chaining in a future post here.
Learn when static methods can’t be unit tested and how to use wrapper classes and the Moq and xUnit frameworks to unit test them when they can When building or working in .NET applications you ...