OptionIntegerReferences public class OptionInteger : IDisposable AllConstructors & FinalizerPropertiesMethods ObsoleteInherited ConstructorsOptionInteger#Since v5.0public OptionInteger(int initialValue, bool setLowerLimit, int limit)Initializes a new instance of the OptionInteger class.Parameters:initialValue (int)The initial value.setLowerLimit (bool)If true, limit sets the lower limit and upper limit is undefined If false, limit sets the upper limit and lower limit is undefined.limit (int)If setLowerLimit is true, then limit is the minimum value. Otherwise, it is the maximum.OptionInteger#ExampleSince v5.0public OptionInteger(int initialValue, int lowerLimit, int upperLimit)Initializes a new instance of the OptionInteger class with both lower and upper limits.Parameters:initialValue (int)The initial value.lowerLimit (int)The minimum value.upperLimit (int)The maximum value.OptionInteger#Since v5.0public OptionInteger(int initialValue)Parameters:initialValue (int)Finalizer~OptionInteger#~OptionInteger()PropertiesCurrentValue#ExampleSince v5.0public int CurrentValue { get; set; }InitialValue#Since v5.0public int InitialValue { get; }MethodsDispose#Since v5.0public void Dispose()Dispose#protected void Dispose(bool disposing)Parameters:disposing (bool)