-
Notifications
You must be signed in to change notification settings - Fork 70
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Milestone
Description
As long as there is no magic around these predicates, my guess is that we could change AreNotReadOnly to member.Writability != Writability.ReadOnly. Any objections? (version 0.11.4)
public static IPredicate<T> AreReadOnly()
{
return new SimplePredicate<T>(
member => member.Writability == Writability.ReadOnly,
"are read only"
);
} public static IPredicate<T> AreNotReadOnly()
{
return new SimplePredicate<T>(
member => member.Writability == Writability.ReadOnly, // <-- Change to !=
"are not read only"
);
}Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.