C# Digest - A neat trick to debug exceptions in C#
#378 — August 30, 2021 | View in browser |
C# Digest
Spread the word, build the community, share the knowledge – invite your friends.
sponsor
Why do C# developers use static code analyzer?
You'll find the answer to this question on the PVS-Studio blog. Use the #digest promo code to get a month free trial of the analyzer.
this week's favorite
A neat trick to debug exceptions in C#
Assume we have a method called UnsafeMethod(), which throws an exception upon calling it. What we want to do is to debug this method and find out where this exception comes from. The naïve approach is to simply surround it with a try-catch, and set a debug point in the catch-block.
Testing websites with Selenium
Selenium facilitates running automated E2E tests as if you were a user accessing the website using the any browser with a supported WebDriver. This enables you to test things not normally available to unit and integration tests such as cross browser support. And using a well thought out strategy, can make it easy to maintain tests even for a complex difficult to test legacy code base. I'll be writing my examples in C# and some of it will be C# specific, but the concepts can apply to multiple languages.
.NET locking in an Async Method
This snippet is for initializing a SignalR connection, I found this pattern to work really well for my use case. Since I want only one connection to my external service started the lock makes sure multiple calls to GetConnection will return a single initialized instances also making it lazily started. The pattern is simple enough, but could be enhanced with a key/value cache on the URL, so multiple connections can be cached.
New .NET 6 APIs driven by the developer community
.NET 6 is on the way, and I wanted to share some of my favorite new APIs in .NET and ASP.NET Core that you are going to love. Why are you going to love them? Well because they were directly driven by our fantastic .NET developer community! Let’s get started!
Build a machine learning data analysis application
Neural networks are very powerful to perform predictive analysis and solve analytical tasks. They are widely used for data classification to detect patterns in the input data and make predictions. The business cases are varied from customer data classification and protection, text classification, consumer behavior, and many others.
newsletters
Older messages
Performance improvements in .NET 6
Sunday, August 22, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #377 — August 23, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
Optimization of .NET applications: A big result of small edits
Sunday, August 15, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #376 — August 16, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
New runtime features coming in .NET 6
Sunday, August 8, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #375 — August 09, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
Try the new System.Text.Json source generator
Sunday, August 1, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #374 — August 02, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite
Anatomy of a .NET app
Sunday, July 25, 2021
And more news, tutorials and articles about C# and .NET in this week's issue. #373 — July 26, 2021 View in browser C# Digest Spread the word, build the community, share the knowledge – invite your
You Might Also Like
Akira Ransomware Gang Extorts $42 Million; Now Targets Linux Servers
Saturday, April 20, 2024
THN Daily Updates Newsletter cover Webinar -- The Future of Threat Hunting Is Powered by Generative AI From Data to Defense: Step Into the Next Era of Cybersecurity with CensysGPT Download Now
Dot Leap 2024-7: Fat Stacks and Race Tracks
Saturday, April 20, 2024
Thank you for taking the Dot Leap!We cover Polkadot, Kusama, Polkadot-SDK, and all related Web 3.0 projects! Want your content featured? X ...
📧 Introduction to Distributed Tracing With OpenTelemetry in .NET
Saturday, April 20, 2024
Introduction to Distributed Tracing With OpenTelemetry in .NET Read on: my website / Read time: 5 minutes BROUGHT TO YOU BY Shesha: The .NET Open-Source Low-Code Framework Introducing Shesha, a
a16z’s Infrastructure team gets a new general partner
Friday, April 19, 2024
Post News is shutting down and Wall Street isn't feeling a Salesforce-Informatica pairing View this email online in your browser By Christine Hall Friday, April 19, 2024 Image Credits: Andreessen
New Roundtable! Additive for Mass Production Applications
Friday, April 19, 2024
The Outlook for the Future View this email in your browser engineering.com Roundtable - Additive for Mass Production Applications: The Outlook for the Future 6 Considerations for Choosing the Right
📷 What to Know About Macro Photography — Why You Should Buy a Budget Motherboard
Friday, April 19, 2024
Also: How to Automatically Highlight Values in Excel, and More! How-To Geek Logo April 19, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your
Is the wind going out of the AI sails?
Friday, April 19, 2024
Rippling vacuums up venture capital and Ramp bags more millions View this email online in your browser By Haje Jan Kamps Friday, April 19, 2024 Image Credits: Getty Images / Carol Yepes Welcome to
Llama 3 is out - Weekly News Roundup - Issue #463
Friday, April 19, 2024
Plus: brand-new, all-electric Atlas; AI Index Report 2024; Microsoft pitched GenAI tools to US military; Humane AI Pin reviews are in; debunking Devin; and more! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Daily Coding Problem: Problem #1417 [Easy]
Friday, April 19, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Wayfair. You are given a 2 x N board, and instructed to completely cover the board with
Charted | How Hard Is It to Get Into an Ivy League School? 🎓
Friday, April 19, 2024
We detail the admission rates and average annual cost for Ivy League schools, as well as the median SAT scores required to be accepted. View Online | Subscribe Presented by: Discover the motivations