Tag: C-Sharp
-
Property Initializers in C-Sharp 6.0
In the C-Sharp 3.0 a new feature Automatic property got introduced. It allows us to create a class as a bag of the setters and the getters. You can create a class as follows: Each property is backed by a backing filed. When you set value of the property, setter gets executed to set the…
-
Decorator Pattern in C#
Read full article on Falafel blog “Decorator pattern attach additional functionalities or responsibilities to an existing object at the runtime”. It adds new behaviour to an individual object without affecting other objects of the same class. New behaviour or functionalities can be either added dynamically at the run time or statically. The decorator pattern: ·…
-
Keep your code DRY
Other day my Boss was reviewing the code written by me. He had a feedback, keep the code DRY. It was great feedback, and I thought why not to share with you that what does DRY mean? DRY stands for Do not Repeat Yourself. To understand it better let is consider below code snippet: I…
-
Video: What is Extension Method in C-sharp
In this video you will learn about Extension Method in C-sharp
-
Video: is and as operator in C-sharp
In this video you will learn about is and as operator in C-sharp