What are Immuatable types

added by DotNetKicks
2/8/2018 1:26:30 PM

2 Kicks, 271 Views

In C#, primarly we have two types of objects : reference type and value type. Value type objects always have default value and created on stack. When we assign value type variable to another variable, a new copy gets created. While reference types objects default to null and created on heap.


0 comments