# HG changeset patch # User IBBoard # Date 1256413787 0 # Node ID c6ed77f263a63d2e9bd16464d4a2991712b5dc5b # Parent 8290adbbc7c4eb67450b251acffcc23d735f9458 Re #24: Add limit objects * Add default constructor that doesn't set a limit (so it always returns whatever is passed to GetLimit()) diff -r 8290adbbc7c4 -r c6ed77f263a6 Limits/NumericSizeConstrainedLimit.cs --- a/Limits/NumericSizeConstrainedLimit.cs Sat Oct 24 15:44:40 2009 +0000 +++ b/Limits/NumericSizeConstrainedLimit.cs Sat Oct 24 19:49:47 2009 +0000 @@ -10,7 +10,14 @@ /// A limit of a specified number, or the number it is limited against, whichever is smaller. /// public class NumericSizeConstrainedLimit : AbstractLimit, INumericLimit - { + { + /// + /// Default constructor that will always return the constrained number, no matter what size it is + /// + public NumericSizeConstrainedLimit() : this(int.MaxValue) + { + } + public NumericSizeConstrainedLimit (int numericLimit) : base(numericLimit) { }