Category Results  

Pointer

Pointer keeps the memory address of arrays and value types. Garbage Collector does not track pointer types. (You can see more detail here about Garbage Collector). Unsafe context is used to run code outside the control of Garbage Collector.

Read More
Pointer TypeData Types

String

String is a data type that can hold texts. String is reference type variable. But when you pass a string to a variable or a method, it does not reference variable. Because string is immutable reference type. That means you cannot change string after it is created. Every change to a string will create a […]

Read More
Reference TypePredefined TypeData Types

Object

Object  is a data type that can hold properties without explicitly defining a type like class. Object is reference type variable. So when you pass an object to a variable or a method, it references variable. This means when you change copied variable, it will change the main variable too. Or changing main variable will […]

Read More
Reference TypePredefined TypeData Types

Interface

Interface is a data type that can hold properties and functionalities. Interface is reference type variable. So when you pass an interface to a variable or a method, it references variable. This means when you change copied variable, it will change the main variable too. Or changing main variable will change the copied variable.   […]

Read More
Reference TypeUser-defined TypeData Types

Class

Class is a data type that can hold properties and functionalities. Class is reference type variable. So when you pass a class to a variable or a method, it references variable. This means when you change copied variable, it will change the main variable too. Or changing main variable will change the copied variable.   […]

Read More
Reference TypeUser-defined TypeData Types

Integral Numeric Types

Integral numeric types reprensent integer numbers and all integer numbers are value type. Here is the list of integral numeric type; Integral numeric types; sbyte => Visit here for more details byte => Visit here for more details short => Visit here for more details ushort => Visit here for more details int => Visit here for more details uint => Visit here for more details […]

Read More
Data Types

Enum | Enumeration

Enum is a data type that holds a group of constants. Enum is value type variable. So when you pass a enum to a variable or a method, system creates of a copy for that variable, this means when you change copied variable, it won’t affect the main variable. Or changing main variable won’t affect […]

Read More
Value TypeUser-defined TypeData Types

Struct | Structure

Structure is a data type that can hold properties and functionalities. Structure is value type variable. So when you pass a struct to a variable or a method, system creates of a copy for that variable, this means when you change copied variable, it won’t affect the main variable. Or changing main variable won’t affect […]

Read More
Value TypeUser-defined TypeData Types

Double

Double is a data type in c# which is to carry numbers in the range -179,769,313,486,232 × 10294 to 179,769,313,486,232 × 10294 . Double can have 15-digit precisions and it is value type variable. So when you pass an short to a variable or a method, system creates of a copy for that variable, this means […]

Read More
Value TypePredefined TypeData Types

Float

Float is a data type in c# which is to carry numbers in the range -3402823 * 10³² to 3402823 * 10³². Float can have 7-digit precisions and it is value type variable. So when you pass an float to a variable or a method, system creates of a copy for that variable, this means […]

Read More
Value TypePredefined TypeData Types