C# & .Net core new features related articles

T.Zacks 3,996 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

Developer technologies | C#
Developer technologies | 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.
{count} votes

Answer accepted by question author
  1. Pierre-Luc Giguere 1,076 Reputation points
    2021-10-19T19:09:50.39+00:00

    Hi Zack,

    I personally start with the "What's new" section of the documentation

    I find it easy to read. For example Web Forms is out ASP .Net Core Blazer is in.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Michael Taylor 61,116 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.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.