Category: C-Sharp

Auto Property Enhancements in C# 6 0

Auto Property Enhancements in C# 6

Automatic properties were introduced in C# 3 which made it easier to declare properties without explicitly specifying the private backing field. Before Automatic Property But still there is a problem with this implementation. We...

What is new in C-sharp 6 0

What is new and exciting in C# 6.0 ?

C# 6.0 introduces many features and enhancements to existing features that make it exciting. The enhancements have been made keeping in mind to make you more productive while reducing the amount of code required....

2

Singleton in C# – The Lazy way

As developers, we have all created and used Singleton at times. It is one of the best-known patterns in software development. Singleton pattern restricts the instantiation of a class to one object. This is...

Encode email address to HTML entities in C# 3

Encode email address to HTML entities in C#

Here is a code snippet to convert your email address to HTML entities that will keep your email safe from email scraper programs: Using LINQ Traditional way The above code will convert an email...