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 theContinueContinue reading “Property Initializers in C-Sharp 6.0”
Tag Archives: C-Sharp
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: ·ContinueContinue reading “Decorator Pattern in C#”
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: IContinueContinue reading “Keep your code DRY”
Video: What is Extension Method in C-sharp
In this video you will learn about Extension Method in C-sharp http://www.youtube.com/watch?v=Xh0knk90tqM&feature=youtu.be
Video: is and as operator in C-sharp
In this video you will learn about is and as operator in C-sharp http://www.youtube.com/watch?v=fsukGhg1yJk&feature=youtu.be