When decorating a bool property with the BooleanTrueValuesAttribute, I would like the option to specify that the property should be set to false if none of the values match the input value and vice versa for the BooleanFalseValuesAttribute.
Possible complications:
Both BooleanTrueValuesAttribute and BooleanFalseValuesAttribute are used on a bool property and either or both have the additional "else" property set.
Suggested solution: Explicitly set values are first considered, if none match and only one of the "else" properties is set, that one is used. If both are set, it's a design choice if one takes precedence or an exception is thrown.
For nullable bool properties, a NullValuesAttribute is also considered before an "else" property is used.
When decorating a bool property with the BooleanTrueValuesAttribute, I would like the option to specify that the property should be set to false if none of the values match the input value and vice versa for the BooleanFalseValuesAttribute.
Possible complications:
Both BooleanTrueValuesAttribute and BooleanFalseValuesAttribute are used on a bool property and either or both have the additional "else" property set.
Suggested solution: Explicitly set values are first considered, if none match and only one of the "else" properties is set, that one is used. If both are set, it's a design choice if one takes precedence or an exception is thrown.
For nullable bool properties, a NullValuesAttribute is also considered before an "else" property is used.