Monday, April 2, 2018

DateTime and TimeSpan

DateTime and TimeSpan are actually the structs under the hood. DateTime is used to point the specific time and timespan is used for the duration. Both are immutable (which can’t be change) means that if we initialize the DateTime or TimeSpan variable then we can’t change its value if we need to increment...

Variable Scope, Overflowing Checked and Unchecked Keywod

Scope Scope is actually all about accessibility of the variable. The point where we can access it, we can use it, we can read or write the variable. These are the things are actually the scope of the variable. If we define the variable at global level then we can access it in functions as well. Similarly...

Sunday, April 1, 2018

Value Type And Reference Type

Before we get started between the difference of value type variables and reference type variables, we need to understand the concept of stack and heap. So let’s get started with stack and heap. Stack VS Heap We’re actually working in the machine environment and we already know that the way we...

Monday, March 19, 2018

DataTypes And .Net Types (CTS)

As we already know that we make the variable to allocate the memory space in our program to store the values. But in programming languages, we always need to define the type of the variable like (int, float, decimal, short etc.). With the help of these datatypes, computer can understand what kind of...