Thursday, May 31, 2018

Difference b/w Reference Vs Value Types ?


  • Reference types are objects that store references to the actual data.
    • example: Class, Interface, delegate, object & string.
  • Value types actually hold values. Assigning one value type to another literally copies that value.
    • example: Structs, enums, bools, numeric types 

No comments:

Post a Comment