Value types are the variables that store the actual values as opposed to reference types that keep a reference to memory where the data is stored.
Note: strings are reference types.
Example:
int MyValueType=123;//Value type
object MyReferenceType=new object();// reference type
No comments:
Post a Comment