Daily Dotnet
Ankit Kashyap
2023-01-05
Which of the following is false about types and their memory allocations in dotnet?
Reference types (classes, interfaces, delegates) are always allocated on the heap.
Value types such as int, bool are always allocated on the stack (and when they are not member of objects).
Strings are immutable as they are basically fixed-size char arrays.
Tuple types are mutable reference type.
Made with 💖 in Beautiful British Columbia 🍁