🚧 📱

Mobile experience coming soon

Mobile development is in progress. Until it is complete, please use your desktop or laptop.

Thanks!

← Back
IAmTimCorey April 10, 2023

Blazor Code Separation - Easily Moving Code to a Code Behind File

Summary

This tech summary explains how to move C# code from Blazer components into separate code-behind files for better organization in production applications. It references the visual cues in Blazer (like the light bulb icon) that facilitate this extraction and highlights how this separation improves code readability and maintainability by leveraging C#'s partial class feature. The practical takeaway is that separating code from markup leads to cleaner and more manageable Blazer projects.

View original episode ↗