General best practices for types. Updated January 2023.
Reference Type & Structure Performance: Best Practices
General best practices for types. Updated January 2023.
General best practices for types. Updated January 2023.
The article emphasizes the critical importance of addressing IDisposable issues in code assessments, highlighting common problems such as virtual memory leaks, unreleased file handles, and escalated database connections. The author provides solutions to two prevalent issues: neglecting to call Dispose() on disposable types and failing to implement the IDisposable interface. Additionally, the author introduces three extension methods from their open-source assembly, Spargine, designed to simplify the disposal of types and mitigate potential memory issues in large collections.
I am happy to announce the third release (v2021.6.3.5) of Spargine, my brand new open-source projects, and NuGet packages for .NET 5 and above. I have added new classes, methods, and unit tests! I use these in all the projects I am currently working on including some that are in production! I hope you will … Continue reading Coding Faster with dotNetTips Spargine – June 2021 Release
On June 18th, 2021 I gave the keynote speech titled "7 Important Requirements for Any Successful Project" at the Code Quality & Performance Conference hosted by C# Corner Live, which I also hosted. We had an amazing lineup of speakers and it was a big hit! My keynote summed up many of the topics that … Continue reading My Keynote from the Code Quality & Performance Conference – 2021
I’m proud to announce the second version (v2021.5.1.50) of Spargine, my brand new open-source projects, and NuGet packages for .NET 5 and above. I’ve added many new classes, methods, and unit tests! I have been working hard the last few months adding more classes and methods, along with more unit testing and benchmarking. I use … Continue reading Coding Faster With The dotNetTips Spargine NuGet March 2021 Update
How important is code quality to your team? It should be at the top of the list, not only to make your customers happy but make your team happier when bugs arise and when features need to be added. Putting quality in your code in the future is a lot more expensive than doing it … Continue reading Open-Source Code Quality – Foundatio
Join me live on Saturday March 27th, 2021 at 10:00 PST on C# Corner for season 2, show #18 where I will interview Rockford Lhotka, CTO at Magenic/Cognizant Softvision. I'm really excited for this show since I've known Rocky since the late 90's and it will be great to catch up with him and what … Continue reading Rockin’ The Code World with dotNetDave – Special Guest: Rockford Lhotka
Join me live on Saturday March 20th, 2021 at 10:00 PST on C# Corner for season 2, show #18 where I will interview Jared Parsons, Principal Development Manager on the C# Compiler Team. Send me your questions for Jared by tweeting it to @realDotNetDave and #RockinCodeWorld. You can also email your questions to: rockincodeworld@c-sharpcorner.com Schedule … Continue reading Rockin’ The Code World with dotNetDave – Special Guest: Jared Parsons
Join me live on Saturday March 6th, 2021 at 10:00 PST on C# Corner for season 2, show #17 where I will interview Claire Novotny, Senior Program Manager and Executive Director of the .NET Foundation. Send me your questions for Claire by tweeting it to @realDotNetDave and #RockinCodeWorld. You can also email your questions to: … Continue reading Rockin’ The Code World with dotNetDave – Special Guest: Claire Novotny
In January 2021, the record class was introduced in .NET 5, simplifying the creation of immutable classes and reducing boilerplate code. Record types offer effortless implementation of equality methods, optimal performance for DTOs, and automatic generation of hashing and string representation functions. Adopting these features enhances coding efficiency and maintenance.
You must be logged in to post a comment.