Skip to content

Allow custom field and property attributes for [RelayCommand] #599

@virzak

Description

@virzak

Overview

When trying to serialize an object that contains a [RelayCommand] the command property gets serialized by default, which could be undesirable.

We should be able to apply a custom property. to avoid serialization

Usage example

[RelayCommand]
[property: Newtonsoft.Json.JsonIgnore]
private void DoWork() { }

Breaking change?

No

Alternatives

The alternative is to pass options during serialization.

Help us help you

Yes, I'd like to be assigned to work on this item

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request 📬A request for new changes to improve functionalitymvvm-toolkit 🧰Issues/PRs for the MVVM Toolkit

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions