Class RuleCountBuilder
- Namespace
- SpatialNET.Network
- Assembly
- SpatialNET.Network.dll
The last step of a rule: the allowed range of the count. Each method returns the finished SpatialNET.Network.NetworkRule.
public sealed class RuleCountBuilderInheritance
Inherited Members
Methods
AtLeast(int)
The count must be at least min.
public NetworkRule AtLeast(int min)Parameters
minint
Returns
Exceptions
- ArgumentOutOfRangeException
-
minis negative.
Between(int, int?)
The count must lie between min and max, both included; no max means no upper limit.
public NetworkRule Between(int min, int? max)Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
-
minis negative or abovemax.
Exactly(int)
The count must be exactly count.
public NetworkRule Exactly(int count)Parameters
countint
Returns
Exceptions
- ArgumentOutOfRangeException
-
countis negative.
None()
There must be nothing to count (a forbidden neighbour).
public NetworkRule None()