-
Automatic Resource Management in .NET 7 Core
Last updated: Tuesday, December 31, 2024
Published in: CODE Magazine: 2024 - January/February
Joydip covers the core concepts of resource management in .NET Core and then helps you build something with it.
-
XML Serialization and Validation in .NET 6/7
Last updated: Thursday, December 21, 2023
Published in: CODE Magazine: 2024 - January/February
Paul shows you how to use XML serialization to store C# objects on disk or in tables. It covers topics such as XML serialization, rules for XML serialization, serialization of C# objects to XML, controlling XML serialization process, working with XML attributes, handling nested objects and lists, working with namespaces, using XML schemas to validate XML documents, and handling schema errors.
-
Process XML Files Easily Using .NET 6/7
Last updated: Thursday, November 30, 2023
Published in: CODE Magazine: 2023 - November/December
Paul shows you how storing data in XML files can save a lot of time and network traffic. Learn how to create XML documents in memory, and to save and load XML files from disk. You'll also see how to use LINQ to XML for processing XML nodes including sorting, filtering, and aggregation.
-
Building an Event-Driven .NET Core App with Dapr in .NET 7 Core
Last updated: Wednesday, January 8, 2025
Published in: CODE Magazine: 2023 - March/April
If you need to be able to create event-driven applications quickly and efficiently, Joydip suggests exploring Distributed Application Runtime (Dapr).
-
Clean Shave: Razor Pages for Web Forms Developers
Last updated: Friday, June 28, 2024
Published in: CODE Magazine: 2023 - March/April
If you’re already familiar with ASP.NET Web Forms, you can apply your existing skillset to use Razor Pages instead. Shawn's overview of Razor Pages provides a straightforward migration path for Web Forms developers.
-
Introduction to Snowflake
Last updated: Wednesday, November 22, 2023
Published in: CODE Magazine: 2023 - March/April
In this article, author Rod Paddock introduces Snowflake, a cloud-based SQL database that offers a range of capabilities for developers. Paddock discusses the features of Snowflake, such as its cloud-agnostic nature, support for querying JSON data, and secure data sharing capabilities. He explains how Snowflake's unique architecture allows for "infinite" computing through its warehouse concept and provides insights into using Snowsight, the web-based application for managing Snowflake infrastructure. Rod also discusses building a data loading pipeline, securing data with masking, and sharing data with other Snowflake users. He concludes by highlighting the power and user-friendly nature of Snowflake as a game-changing product.
-
Some Overlooked EF Core 7 Changes and Improvements
Last updated: Wednesday, January 8, 2025
Published in: CODE Magazine: 2023 - March/April
Great updates for EF Core 7 include explicit methods FromSqlRaw and FromSqlInterpolated. The SqlQuery method lets you pass in a raw SQL query to get scalar data directly from the database. And many more cool features. Read about them in Julie's article.
-
An Introduction to Distributed Tracing with OpenTelemetry in .NET 7
Last updated: Wednesday, January 8, 2025
Published in: CODE Magazine: 2023 - January/February
OpenTelemetry is an open-source distributed tracing framework. Companies that use it can make more informed decisions about their operations. Learn to use it through an example ASP.NET 7 project.
-
The Rich Set of Data Annotation and Validation Attributes in .NET
Last updated: Wednesday, January 8, 2025
Published in: CODE Magazine: 2023 - January/February
Paul teachs how to use many of the data annotations available in .NET; likely the ones you will use most often. Plus he shows you how to build custom validation attributes using the [CustomValidation] attribute. Finally, learn to localize error messages using resource files.
-
Webinar Bonus Article: Improving String Performance in .NET 7
Last updated: Thursday, January 9, 2025
Published in: CODE Magazine: 2022 - November/December
This bonus article accompanies Joydip's CODE Presents webinar of the same name, presented November 16, 2022. To watch the webinar recording, visit https://www.codemag.com/CodePresents.
-
Blazor for the Web and Beyond in .NET 7
Last updated: Wednesday, October 8, 2025
Published in: CODE Focus Magazine: 2022 - Vol. 19 - Issue 1 - .NET 7.0
In this article, Daniel Roth summarizes how .NET 7 advances Blazor into a more productive, interoperable platform for building cross‑platform web and native apps—highlighting new features like Blazor custom elements, improved data‑binding modifiers, navigation locking, dynamic auth requests, a WebAssembly loading UI, empty templates, richer hot‑reload and debugging, expanded crypto, low‑level JS<->.NET interop, and Blazor Hybrid with .NET MAUI—positioning Blazor as a mature, modern choice for UI across browsers, mobile, and desktop.
-
Highlighted Performance Wins with .NET 7
Last updated: Wednesday, October 8, 2025
Published in: CODE Focus Magazine: 2022 - Vol. 19 - Issue 1 - .NET 7.0
Stephen Toub surveys the standout performance gains in .NET 7, arguing that no single change dominates, but a collection of targeted innovations—most notably on-stack replacement (OSR) for tiered JIT compilation, a Regex source generator that delivers compile-time equivalents of compiled regexes without JIT, and extensive vectorization in LINQ and core APIs—collectively yield substantial speedups. He illustrates how OSR accelerates loops, how compile-time regex generation aids environments without JIT, and how fixed-width vectors unlock dramatic throughput, urging developers to adopt .NET 7 and measure gains.
-
Upgrade Tooling for .NET 7
Last updated: Wednesday, October 8, 2025
Published in: CODE Focus Magazine: 2022 - Vol. 19 - Issue 1 - .NET 7.0
Mike Rousos surveys the expanded toolkit for migrating from .NET Framework to .NET 7, detailing new and improved upgrade tools and how they fit together. He explains Upgrade Assistant’s binary analysis and in-place upgrades for libraries and desktop apps, introduces ASP.NET Incremental Migration Tooling for gradually moving ASP.NET apps to ASP.NET Core, and presents System.Web Adapters to interoperate and share code between frameworks. The article also outlines practical upgrade steps, deployment considerations, and an ecosystem roadmap, urging community feedback to evolve the tooling.
-
Use .NET MAUI for Native, No-Compromise Apps
Last updated: Wednesday, October 8, 2025
Published in: CODE Focus Magazine: 2022 - Vol. 19 - Issue 1 - .NET 7.0
David Ortinau argues that .NET MAUI lets .NET developers build high-performance, native-feeling mobile and desktop apps from a single multi-targeted project, reusing existing .NET skills and libraries, simplifying resources, lifecycle, and platform integration, and enabling Blazor hybrid UI, strong tooling (hot reload, Live Preview) and enterprise patterns to accelerate cross-platform app delivery with no compromise.
-
Using CoreWCF to Move WCF Services to .NET Core
Last updated: Wednesday, October 8, 2025
Published in: CODE Focus Magazine: 2022 - Vol. 19 - Issue 1 - .NET 7.0
In this article, Sam Spencer explains how CoreWCF, an open-source community-driven project, facilitates the modernization of legacy WCF services by porting them to the cross-platform .NET Core framework. He outlines CoreWCF’s architecture, leveraging ASP.NET Core hosting and middleware, and describes how it preserves existing WCF contracts and data contracts while offering partial support for traditional bindings and configurations. Spencer details practical migration approaches, client support, and current limitations, emphasizing that CoreWCF provides a practical and supported pathway for enterprises to modernize WCF-dependent applications without a complete redesign.
-
What’s New in .NET 7
Last updated: Wednesday, October 8, 2025
Published in: CODE Focus Magazine: 2022 - Vol. 19 - Issue 1 - .NET 7.0
In "What’s New in .NET 7," Jon Douglas highlights the latest .NET release focusing on significant performance improvements, enhanced cloud-native capabilities, and developer productivity boosts through features like C# 11, .NET MAUI, and built-in container support. The article emphasizes easier modernization of legacy apps, optimized ARM64 performance, enriched observability, and the introduction of Native AOT for faster startup and smaller deployments. Jon conveys that .NET 7 builds on prior unification efforts to empower developers to build any application across platforms with improved runtime, libraries, and tooling, making it Microsoft's fastest and most versatile .NET release yet.
-
What’s New in C# 11
Last updated: Wednesday, October 8, 2025
Published in: CODE Focus Magazine: 2022 - Vol. 19 - Issue 1 - .NET 7.0
Bill Wagner explains that C# 11 organizes its advances around four themes—improved developer productivity, object initialization and creation, generic math support, and runtime performance—with the first two likely most impactful in everyday code. He surveys features such as raw string literals, newlines in interpolations, UTF-8 string literals, pattern matching on Span, and list patterns to make code more concise and readable; plus required members, auto-default structs, extended nameof scope, and generic attributes to improve object initialization. He also highlights runtime-focused enhancements like ref fields, file-local types, and cached delegate conversions that boost performance.