03 March 2019

c#basics ArrayList boxing unboxing stack heap List

toop

We learned about ArrayList and the process of boxing-unboxing. we explored memory type Stack vs Heap and how .NET calls the functions using stack-frame. We saw Generic List<T> class which avoids the boxing-unboxing operations. We got familiar with the LINQ API. finally we implemented a Stack data-type functions using List commands (behind the scenes)

stack.png

More topics covered:

    • Garbage Collector (GC) – memory cleaning
    • Recursion methods – StackOverflow issues
    • Stack frame local variables
    • Typesafe
    • List<T>.Insert
    • List<T>.Count
    • List<T>.RemoveAt
    • List<T>.Clear
    • List implementation uses an Array

Links:

Leave a comment

Design a site like this with WordPress.com
Get started