Sometimes default keywords comes very handy when working with generic objects. It returns the default value when the object is not initialized. For example, we all know integers are initialized to 0 if not given any value. Characters are Empty when not given any value, objects are null when not assigned any value.
Fixed is the one of uncommon keyword in C#. The keyword is Fixed which can only be used in Unsafe C# code blocks. Fixed statement sets the pointer to be in a fixed memory address so that, it will not be moved to anywhere even if Garbage Collection Thread is invoked.
Here I am going to show you the two important window of the Visual Studio which is useful when you debugging the project and to get the result on the fly during debug mode. Call Stack Window Most of the developer get confuse when they are debugging application “From which function call came from up to my debug… Read More »
__arglist is used to send parameters to a method. Generally we used to send parameters to a function by having a list of arguments specified in the method head. If we want to pass a new set of arguments we need to have Method Overloading. Even when we want to send any number of arguments we might use… Read More »
We use using to define alias. There are 2 types of Alias 1. Namespace Alias: Namespace alias are used when you want to shorten a long namespace. To do that :
In Visual Studio you can enable and disabled the automatic #region code surround while implement interface. Well by default it’s set to off and which is mostly like by all developer. But if you want some change, and you want while implementing interface it should automatically surround by #region then you have to go to Tools > Options… Read More »
Compiler directives is always a fun for any language. There are lots of talks around different blogs on compiler directives but there are hardly any talks around my favorite #pragma directives. So lets talk what it is and what it is capable of. In general, Pragma directives are special instruction to the compiler when it compiles a file.… Read More »
Sometime you may came across with this problem that, you are not able to view the solution file in Visual Studio though you have solution file in proper place and the file physically exists in solution folder . You may just wonder why you are not able to view the solution file. Yeah, it could be some missing… Read More »