Malimbe icon indicating copy to clipboard operation
Malimbe copied to clipboard

Overhaul [Cleared]

Open bddckr opened this issue 6 years ago • 0 comments

  1. Rename the attribute to ClearsToDefaultAttribute and also allow setting non-reference types (see [RequiresBehaviourState] for the logic to set to default).
  2. Add a new attribute ClearsByMethodAttribute which takes the nameof the method to call on the property to clear it. This needs to handle null property values(!), and shall ensure the method exists on the property's type(!) and the method is accessible(!) and takes no arguments(!). The method's return value shall be ignored.

bddckr avatar Jan 28 '19 16:01 bddckr