DailyDrop

Private variables prefixed with underscore?

Why is the convention that private variables should start with an underscore?


Read more...


Enum validity with IsDefined

Check the validity of an enum with with the IsDefined method


Read more...


Evolution of multi case switch statements

Various ways of handling multiple case switch expressions in C#


Read more...


Duck typing in C#

What is duck typing and how does it work in C#?


Read more...


Lazy loading objects with Lazy<>

Defer the loading of large objects until require with Lazy<>


Read more...


Customize debugger class display

Customize how classes are displayed when debugger


Read more...


Dependency Injection with Func and delegates

Injecting a Func or Delegate using dependency injection


Read more...


Incremental source generators

Generate code, to be used in code, to generate additional code


Read more...


Enumeration on a custom class

How to make a custom class enumerable (work with foreach)


Read more...


Optional method parameters

Use the Optional attribute to make parameters optional


Read more...