C# · CodeProject · Dotnet

Proving that Properties are methods with out looking into IL

Hi, Today i was just thinking what if i had read/heard a theoretical point from some where/some one that properties are actually methods internally and they are prefixed by get_ and set_ for get and set accessors  respectively but wanted to validate it practically. I am sure now you’ll think of saying: dude go and… Continue reading Proving that Properties are methods with out looking into IL

C# · CodeProject · Dotnet

Null coalesce vs If null check

Dear Reader, In this article, i shall talk about internals of null checking on a type (ref type mostly) by using null coalesce operator or via if condition. Null coalesce operator in c# is ?? and you can use it as shown below:  String SomeValue;  var res = SomeValue ?? null Now, lets us dig… Continue reading Null coalesce vs If null check

C# · CodeProject · Dotnet

Overview on Task Parallel Library

Hello, In this article, i would just explain the overview of the TPL in .NET 4 which will just get you started in understanding about it. TPL stands for Task Parallel Library. This library was introduced in .NET 4 framework. In today’s world, the devices on which our code runs are powerful yet compact. These… Continue reading Overview on Task Parallel Library

C# · CodeProject · Dotnet

Constants and Readonly internals

Dear Friends, In this article i shall be discussing about constants and read only fields which we all use in our .NET variant language codes viz C#, VB .NET, VC++, etc. Constants are not changeable values in the entire code base once it is defined. Lets dig a bit deeper into the const keyword which… Continue reading Constants and Readonly internals

C# · CodeProject · Dotnet

Ending Virtual overriding tree in Inheritance

Hello Amigos, Today i stumbled upon on a problem where in one has to stop the virtual overriding hierarchy tree in inheritance. I see in many cases it is needed to safe guard your hierarchy tree in your application so that no other Evil class does inheritance to your subclass and over rides it again.… Continue reading Ending Virtual overriding tree in Inheritance