Flashes Home Search Notifications Sign in Post
@stuartgreig.dev @stuartgreig.dev · Mar 7

Stop letting your JSON serializer dictate your object's design. Using a private [JsonConstructor] + a Static Factory method ensures your domain objects stay valid while keeping the serializer happy. Encapsulation > Public everything. #dotnet #csharp #programming #clean-code

2 likes 0 replies

?

Legal

Privacy Policy Terms and Conditions

Contact

FAQs Feedback

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store

Feeds

  • Global
  • Trending
  • Blacksky Images
  • Photography
  • Discover
Browse all feeds
Feedback Ideas, bugs, and what ships next
Privacy Policy Terms and Conditions FAQs Bluesky Instagram Threads
Get it on the App Store