Contents tagged with C#
-
ORMs role in Microservices age!
Recently I saw some discussions on Twitter people arguing about necessity of existence of ORMs (Object-relational mapping) at this age and the others are even waiting to have Entity Framework as a binging in Azure Functions. That made me as a person who have been working with ORMs from the early days and with different types of data driven applications, to write my two cents about the topic.
-
Why and how to use lazy initialization in C# using Lazy<T> API
First of all, why do we need lazy object initialization? The answer is that when initialization of an object for whatever reason is expensive, we would typically wish to instantiate it once and only when it's required. There is an API introduced in .NET Framework called Lazy<T> for this purpose.
-
Ideas behind INotifyPropertyChanged implementation
INotifyPropertyChanged is a standard interface available form the early versions of .NET but still so popular. The general idea behind the implementation of this interface is awareness of the changes in the value of the properties in a class.
-
An introduction to BlockingCollection
BlockingCollection is a class under System.Collections.Concurrent namespace and as the name implies, like any other collections under this namespace, it can also be used in concurrent and multi-tasking scenarios.
-
Book Review: Adaptive Code via C#: Agile coding with design patterns and SOLID principles
Recently I had a chance to read the book: Adaptive Code via C#: Agile coding with design patterns and SOLID principles by Gary McLean Hall.
-
Stripping HTML Tags
This is my first post in this blog. I hope you find useful.
One of common problem for web developers is "stripping html tags".
in example : in search operations or sending plain text emails by newsletter and .....
in this post i do that with RegularExpressions.