Value Type Vs Reference Type In C#



Reference Type & Value Type


Reference Type variables are stored in the heap while Value Type variables are stored in the stack. Value Type: A Value Type stores its contents in memory allocated on the stack. When you created a Value Type, a single space in memory is allocated to store the value and that variable directly holds a value.


#ValueType #ReferenceType #AspDotNet #Mvc #DesktopApplication

Post a Comment

Previous Post Next Post