C# & .Net core new features related articles

T.Zacks 3,926 Reputation points
2021-10-19T18:37:12.687+00:00

I am curios to know all the new features introduced in .net core & in c# regarding various version wise. i was searching few site to get few good article on this topic but not very lucky. so anyone can share few links of good articles which talk about C# & .Net core new features version wise and their advantages with example code to show usage.

in latest .net core is there any new data type of List<T> which works smarter than List<T> in terms of memory & speed of execution.

Thanks

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,987 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Michael Taylor 37,946 Reputation points
    2021-10-19T20:02:35.583+00:00

    in latest .net core is there any new data type of List<T> which works smarter than List<T> in terms of memory & speed of execution.

    What memory/perf issues are you having with List<T>? It is one of the fastest dynamic array implementations available and therefore should be good enough. Of course if you're doing things that are inefficient then it won't perform well but that is on your code. Without any examples of perf/memory issues it is hard for us to tell you what to use better.

    List<T> is backed by an array so for raw read (and generally) write speed it is probably the best. The runtime has gone through optimizations so you can expect a little perf improvements across the board but there hasn't been any new data structures added to beat List<T> as I'm not aware of anyone having issues. Perhaps you should use a different data structure if your having issues. .NET ships with others including hashsets, dictionaries and linked lists. They are all optimized for different scenarios so choose the one that is optimized for your use case.

    If you believe there are perf issues with List<T> then submit a ticket in Github so the team can look at it but you'll need to provide some sample code that performs badly but shouldn't so they can test.

    No comments