❔ ✅ How to get true properties from object?
I have following object:
I'd like to return all properties where bool is not false
how can I do it?
5 Replies
I can do smth like.. rules.ToJsonString(true);
and it will return all jsonpropertynames with their values but I need only true values
I guess your options are to either write something to filter this property by property yourself
Or use reflection
what would you expect the return to look like?
thanks for helping
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.