-
Automatic Component State Management in Blazor using INotifyPropertyChanged and INotifyCollectionChanged
In Blazor, changes to the state of a component become visible to the user when the component re-renders. Blazor has some conventions to make a component automatically re-render when it thinks there is a chance for the component’s state to be changed. However these conventions might sometimes fail to detect changes that actually require a re-render. read more
-
C# Expression Trees!
Have you ever wondered how a property of an object can be passed to a method? I mean the property itself, not its value! Why does it matter to be able to pass a property, you might ask. Let me explain with an example. Let’s say we want to write a method that accepts a string property of an object and prints the name of the property followed by its value. How should this method be written? read more