C# Digest - Using StringBuilder To Replace Values

#460 – June 26, 2023 View in browser

C# Digest

Using StringBuilder To Replace Values

Have you ever had to clean up your users’ input, only to realize the pain and aggravation it can lead to with all the unnecessary memory overhead? I recently had an “aha!” moment and thought I would share this tip with you.

Get $1 Off Your Next Domain Name Registration at Porkbun.com! (sponsor)

Porkbun offers hundreds of domain extensions like .net, .dev, .app, and .cloud at the lowest prices around! Plus every Porkbun domain comes with free SSL certificates, WHOIS Privacy, DNS, URL Forwarding, and more. It’s all backed by incredible support 365 days a year plus thousands of five-star reviews on Trustpilot. Click the link to get $1 off your next domain name registration at Porkbun.com!

Validating nested DataAnnotation IOptions recursively with MiniValidation

In this short post I show how you can use the MiniValidation library from Damian Edwards to support recursive validation of IOptions object in .NET 6+.

How to use RuntimeHelpers.IsReferenceOrContainsReferences to micro-optimize collections

In this post, I describe how to use RuntimeHelpers.IsReferenceOrContainsReferences to micro-optimize collections in .NET.

Reset passwords in ASP.NET Core using delegated permissions and Microsoft Graph

This article shows how an administrator can reset passwords for local members of an Azure AD tenant using Microsoft Graph and delegated permissions. An ASP.NET Core application is used to implement the Azure AD client and the Graph client services.

C# 12: Collection literals

A new feature is hitting C# 12 and it is called Collection literals. In this blog post, I will show you what it is and how it works.

ASP.NET Core 8: Expose Timestamp data request processing with IHttpSysRequestTimingFeature when using HTTP.sys

ASP.NET Core 8 is quite there and brings some improvements in performance diagnostics! In this post I will show how to collect detailed timestamp data related to request processing when using HTTP.sys with the new interface IHttpSysRequestTimingFeature.

how did you like this issue?

Amazing · Great · Okay · Meh · Bad

newsletters

© 2023 Bonobo Press

Would you like to advertise with us? Check out our latest media kit for more information.
If you no longer wish to receive these emails, click to unsubscribe.

Older messages

Arrays: A Data Structure Deep Dive

Tuesday, June 20, 2023

Master the art of efficient data manipulation and access with arrays #459 – June 19, 2023 View in browser C# Digest Arrays: A Data Structure Deep Dive Master the art of efficient data manipulation and

Reduce heap allocations by using static anonymous functions

Monday, June 12, 2023

As a C# developer you got used to apply anonymous functions everywhere. #458 – June 12, 2023 View in browser C# Digest Reduce heap allocations by using static anonymous functions As a C# developer you

Raiders of the lost root: looking for memory leaks in .NET

Sunday, June 4, 2023

This post explains how you could write your own memory profiler based on .NET profiler APIs #457 – June 05, 2023 View in browser C# Digest Raiders of the lost root: looking for memory leaks in .NET

The Art of HTTP Connection Pooling

Sunday, May 28, 2023

How to Optimize Your Connections for Peak Performance #456 – May 29, 2023 View in browser C# Digest The Art of HTTP Connection Pooling: How to Optimize Your Connections for Peak Performance Connection

How to improve memory allocation when creating HttpContent

Sunday, May 21, 2023

The benefits of using the RecyclableStream and StreamContent #455 – May 22, 2023 View in browser C# Digest How to improve memory allocation when creating HttpContent In almost every application created

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your