Skip to main content
Gordon Beeming

Father • Husband • Triathlete • SSW Solution Architect

homeblognuggetsprojectstagsabout
← all tags

Tagged System.Text.Json

1 postRSS ↗
Jul 22, 2025·6 min read

Keep Your Domain Clean: Deserializing with Private Setters in C#

Ever created a perfectly encapsulated C# domain object with private setters, only to find System.Text.Json can't deserialize data back into it? You don't have to expose your setters! Let's explore a clean solution.

C#.NETSystem.Text.Json+2 more
About
Gordon Beeming

Solution Architect at SSW in Brisbane, and a Microsoft MVP every year since 2014. Azure, DevOps, and helping teams write better C#. Husband and father, usually training for the next swim, bike or run.

More about me »
Archives
202628202537202422023420228All 202 posts »
Search

Searches posts, projects and nuggets.

Tags
VSTS / TFSAIAzureProductivityVisual StudioYouTube VideosSecurityDevOps.NETPowerShellGitHub
Elsewhere
GitHubLinkedInYouTubeRSS feed
xylemGordon Beeming

A personal blog about software development, DevOps, open source, and the occasional triathlon story. Built with Next.js.

Powered by curiosity and

Links
blognuggetsprojectstagsaboutcolor palette
Support
Buy Me a CoffeePatreonGitHub Sponsors
© 2013-2026 Gordon Beeming · Opinions are my own and not that of my company or anyone I engage with.