Skip to content

NonSerializable/XMLIgnore Attributes with ICommand/ObservableProperty attributes #208

@Aurumaker72

Description

@Aurumaker72

Describe the problem

A way/special attribute to be used in conjunction with ICommand or ObservableProperty which signalizes the backing field not to be serialized

Describe the solution

  [ICommand]
  [SpecialXMLIgnore]
  private void DoSomething()
  {
     MessageBox.Show("Hello");
  }

Example which should compile to

[XmlIgnore]
private IRelayCommand? doSomethingCommand;
public IRelayCommand DoSomethingCommand => doSomethingCommand ??= new RelayCommand(DoSomething);

Alternatives

No response

Additional info

No response

Help us help you

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicate 👥Indicates that an identical issue or PR already existsfeature request 📬A request for new changes to improve functionalitymvvm-toolkit 🧰Issues/PRs for the MVVM Toolkit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions