Beginner’s Guide to Value and Reference Types in C#

Value Type: Built in types such as int(all numeric types),char,bool etc.. would come under value type. Custom struct and enum would also fall into this category. Value types exhibit following characteristics. Actual Value(s) gets copied when a variable  is assigned to another variable and there is no relationship between two variables after the assignment statement Consider the following code block …