<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.6.0-rc1.19456.4" />

IntegerValidatorAttribute

Declaratively instructs the .NET Framework to perform integer validation on a configuration property. This class cannot be inherited.
public bool ExcludeRange { get; set; }

Gets or sets a value that indicates whether to include or exclude the integers in the range defined by the MinValue and MaxValue property values.

public int MaxValue { get; set; }

Gets or sets the maximum value allowed for the property.

public int MinValue { get; set; }

Gets or sets the minimum value allowed for the property.

Creates a new instance of the IntegerValidatorAttribute class.