Extracting Hyperlinks from HTML in C# via Regex and Parsers

While dedicated DOM parsers are the standard recommendation for processing markup languages, there are specific scenarios where developers might consider using regular expressions within C# applications. HTML is inherently hierarchical and nested, whereas regular expressions operate on linear text patterns. This mismatch means regex is often fr ...

Posted on Wed, 05 Aug 2026 16:53:20 +0000 by jpschwartz

Analysis of a Non-Deterministic .NET Crash Caused by Memory Corruption

Investigation Overview A .NET application, primarily used for industrial machine vision, encountered a sponteneous crash. An analysis of the memory dump revealed critical instability within the managed heap. Diagnosing the Crash Using WinDbg to inspect the dump, the initial exception indicated an access violation during garbage collection: (bf8 ...

Posted on Tue, 04 Aug 2026 16:03:45 +0000 by TCovert

Implementing CRUD Operations with EF Core in .NET Core

This implementation demonstrates a generic repository patttern for Entity Framework Core operations in a .NET Core application. Creating the Service Library Create a class library project named NetCoreDemo.Services to house the data access layer. Defining the Base Service Interface public interface IBaseService { T GetById<T>(string i ...

Posted on Fri, 31 Jul 2026 16:30:30 +0000 by bogdan

Refactoring a Cross-Platform Serial Port Library for Thread-Safe Data Handling

Overview The CustomSerialPort library (available at flyfire.CustomSerialPort) builds upon the SerialPortStream library to provide protocol-agnostic complete frame reception with cross-platform support. While the library offers general-purpose serial port functionality, the implementation contains several architectural issues that warrant attent ...

Posted on Sun, 05 Jul 2026 16:02:25 +0000 by moffo

Understanding the Container-Component-Service Architecture in .NET

Logical Containment and Design-Time Infrastructure The enternal mechanics of visual designers, particularly within IDEs like Visual Studio, rely heavily on a specific architectural pattern: the Container-Component-Service model. This paradigm decouples UI elements from their underlying logic and management infrastructure. Understanding this mod ...

Posted on Thu, 21 May 2026 20:28:00 +0000 by plasmahba

Optimizing Collection Usage in C#: Best Practices and Performance Techniques

Understanding Collection Optimization in C# Effective collection management is fundamental to writing high-performance C# applications. The .NET framework provides a rich ecosystem of collection types, each designed for specific scenarios. Understanding when and how to use these collections appropriately can significantly impact your applicatio ...

Posted on Thu, 14 May 2026 23:19:18 +0000 by thechris

Working with XML in C#: A Practical Guide

XML (eXtensible Markup Language) serves as a versatile data storage and interchange format where developers define their own tags according to specific needs. Unlike HTML with its predefined tags, XML provides complete flexibility in structuring data. While Document Type Definitions (DTD) can enforce validation rules on XML documents, they are ...

Posted on Thu, 14 May 2026 08:41:54 +0000 by robche

Transitioning from Java to Avalonia for Cross-Platform .NET UI Development

Introduction to AvaloniaAvalonia is a modern, cross-platform UI framework built on the .NET runtime. Drawing architectural inspiration from WPF, it extends its capabilities beyond Windows to natively support Linux and macOS. This cross-platform nature makes it highly suitable for environments requiring adaptation to various domestic operating s ...

Posted on Mon, 11 May 2026 04:48:29 +0000 by PHPSpirit

Implementing Dependency Injection with AutoFac in .NET Console Applications

In software architecture, dependencies arise when one class requires collaboration from another to function. This relationship often leads to coupling. Consider a standard three-tier structure consisting of a User Interface, Business Logic, and Data Access layer. Without proper abstraction, the business logic layer directly instantiates data ac ...

Posted on Mon, 11 May 2026 00:06:12 +0000 by smitthhyy

Implementing Memory Caching in ASP.NET Core Applications

ASP.NET Core provides built-in caching components that help improve application performance by storing frequently accesssed data in memory. The caching infrastructure supports multiple storage backends including in-memory cache, Redis, and SQL Server. This guide focuses on implementing in-memory caching in your ASP.NET Core applications. Settin ...

Posted on Fri, 08 May 2026 10:59:25 +0000 by surfer