Question d’entretien chez Morgan Stanley

Difference between value type and reference types in c#?

Réponse à la question d'entretien

Utilisateur anonyme

17 mars 2017

Difference between a Value Type and a Reference Type. ... A Value Type holds the data within its own memory allocation and a Reference Type contains a pointer to another memory location that holds the real data. Reference Type variables are stored in the heap while Value Type variables are stored in the stack.