© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
6 replies
nathanAjacobs

CommunityToolkit.MVVM ObservableProperty and JsonIgnore

I have an observable property like so:

[ObservableProperty]
private string _online;
[ObservableProperty]
private string _online;


Is there any way to specify that the generated property be ignored for json serialization?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ ✅ Databinding using CommunityToolkit.MVVM
C#CC# / help
3y ago
How to Properly Synchronize ViewModel and Model in MVVM (CommunityToolkit.Mvvm)
C#CC# / help
11mo ago
✅ How to use IRelayCommand in CommunityToolkit.Mvvm with parameters?
C#CC# / help
2y ago
Why deletion of last character in Entry not triggers observableProperty? (MVVM, Maui)
C#CC# / help
11mo ago