Doing computation over numbers stored as strings can be challenging. Finding the sum or max among all numbers stored as strings would be easy, but sorting the “string” numbers without type-casting them to integer/double is tricky.
Here, we’ll see how Anonymous methods come to the rescue for sum & max operations and Sort & OrderBy functionality for sorting “string” numbers.
Multi-threaded applications give a big boost to Code’s Performance and Scalability. But often times we need to be careful while using Thread-unsafe collections in these scenarios.
Here, we’ll know how to ensure proper dynamic allocation of memory to thread-unsafe collections and to perform Thread-Safe updates in them.