by thedirt0115 · 7y ago · 0 comments
You can do function composition in C# but I've virtually (heh) never seen it. Classes and Interfaces are the default abstractions in C# land even if there are other available.
var isValidShort = createPasswordPolicy(new [] {
Test.MinimumLength(8),
Test.MustHaveDigits,
Test.MustHaveUppercase,
});