You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename the attribute to ClearsToDefaultAttribute and also allow setting non-reference types (see [RequiresBehaviourState] for the logic to set to default).
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.
The text was updated successfully, but these errors were encountered:
ClearsToDefaultAttribute
and also allow setting non-reference types (see[RequiresBehaviourState]
for the logic to set todefault
).ClearsByMethodAttribute
which takes thenameof
the method to call on the property to clear it. This needs to handlenull
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.The text was updated successfully, but these errors were encountered: