The article emphasizes the importance of proper handling of disposable objects in .NET projects to avoid memory-related issues. It discusses the creation of "bulletproof" disposable types using extension methods, such as TryDispose() for local variables, DisposeFields() for managing disposable fields, and DisposeCollection() for handling disposable objects in collections. Additionally, the author recommends using a memory profiler, specifically ".NET Memory Profiler" by SciTech Software AB, to ensure there are no virtual memory leaks in the application before deployment.
[New post] Ensuring Robustness with Bulletproof Disposable Types in Microsoft .NET
Older messages
[New post] Microsoft .NET Code Analysis: Random Is an Insecure Random Number Generator
Wednesday, August 23, 2023
dotNetDave posted: " There is a newer and more secure way to generate random numbers in .NET. I often observe many developers writing code to generate random numbers using the example below:
[New post] Rockin’ the Code World: Special Guest Bob Reselman
Monday, August 21, 2023
dotNetDave posted: " Join me on Saturday, September 9th, 2023, at 10:00 PST on C# Corner TV for show #87 where, for the second time, my special guest will be Bob Reselman, Independent Consultant.
[New post] Microsoft .NET Code Analysis: Simplify the New Expression for C#
Wednesday, August 16, 2023
dotNetDave posted: " I have been programming with Microsoft .NET since a year before its release. I must admit that I've never liked having to define a type twice when creating it, as in this
[New post] Real World Coding Issues: Part 3 – Design, Diagnostics, and Other Common Code Issues
Monday, August 14, 2023
dotNetDave posted: " In Part 2 of this series of articles about real-world coding issues, I highlighted the code violations I discovered in the contract I worked on in the “Style” category. The
[New post] Microsoft .NET Code Analysis: Validate Arguments of Public Methods
Wednesday, August 2, 2023
dotNetDave posted: " One issue I frequently encounter while reviewing code is the lack of argument validation in public methods. As a software engineer with over 20 years of experience, I find it
You Might Also Like
Daily Coding Problem: Problem #1708 [Medium]
Tuesday, March 4, 2025
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Indeed. Given a 32 -bit positive integer N , determine whether it is a power of four in
Underscore Naming, Flask-SQLAlchemy, Kivy, and More
Tuesday, March 4, 2025
Single and Double Underscore Naming Conventions in Python #671 – MARCH 4, 2025 VIEW IN BROWSER The PyCoder's Weekly Logo Single and Double Underscore Naming Conventions in Python In this video
Dial An Advertiser ☎️
Tuesday, March 4, 2025
Things like phone books existed before phone books. Here's a version for your browser. Hunting for the end of the long tail • March 4, 2025 I've decided to stop being so unfair to myself with
Ranked | The World's Top 20 Economies by GDP Growth (2015-2025) 📊
Tuesday, March 4, 2025
Halfway through the 2020s, here's a report card on the top 20 economies and their progress since 2015. View Online | Subscribe | Download Our App Presented by Hinrich Foundation NEW REPORT:
Open Source Isnt Dead...Its Just Forked
Tuesday, March 4, 2025
Top Tech Content sent at Noon! Augment Code: Developer AI for real eng work. Start for free Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, March 4,
LW 172 - How to Make Compare at Pricing Show at Checkout
Tuesday, March 4, 2025
How to Make Compare at Pricing Show at Checkout Shopify Development news and articles Issue 172 -
Issue 165
Tuesday, March 4, 2025
💻🖱️ A single click destroyed this man's entire life. Fake murders get millions of YouTube views. Zuckerberg can now read your silent thoughts. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
This top multitool is under $30
Tuesday, March 4, 2025
Thinnest phone ever?📱; ArcoPlasma; Siri alternatives 🗣️ -- ZDNET ZDNET Tech Today - US March 4, 2025 GOTRAX 4 electric scooter I finally found a high-quality multitool for under $30 Compact and durable
Post from Syncfusion Blogs on 03/04/2025
Tuesday, March 4, 2025
New blogs from Syncfusion ® Stacked vs. Grouped Bar Charts in Blazor: Which is Better for Data Visualization? By Gowrimathi S Learn the difference between the stacked and grouped bar charts and choose
⚙️ GenAI Siri
Tuesday, March 4, 2025
Plus: TSMC's hundred billion dollar investment