Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: MaximumCountConstraint(IEnumerable<int>, Func<int, bool>, int)

Declaration

public MaximumCountConstraint(
    IEnumerable<int> cells,
    Func<int, bool> isRestrictedValue,
    int maxAllowed
)

Summary

Constrains a set of values to occur a specified maximum number of times within a specified region.

Parameters

IEnumerable<int>cells Region of cells affected by the constraint.
Func<int, bool>isRestrictedValue Determines which value(s) may only occur up to maxAllowed number of times within cells.
intmaxAllowed The maximum number of times a restricted value may occur within cells.