Some guy asked me this question couple of months ago and I couldn\'t explain it in detail. What is the difference between a reference type and a value type in C#?
I
value data type and reference data type
1) value( contain the data directly ) but reference ( refers to the data )
2) in value( every variable has its own copy)
but
in reference (more than variable can refer to some objects)
3) in value (operation variable can`t effect on other variable ) but in reference (variable can affect other )
4) value types are(int, bool, float) but reference type are (array , class objects , string )