| | | 1 | | namespace ArturRios.Util.Random; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Options controlling random string generation produced by <see cref="CustomRandom.Text"/>. |
| | | 5 | | /// </summary> |
| | | 6 | | public class RandomStringOptions |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Desired length of the generated string. Default is 10. |
| | | 10 | | /// </summary> |
| | 79 | 11 | | public int Length { get; set; } = 10; |
| | | 12 | | /// <summary> |
| | | 13 | | /// Whether to include lowercase letters. Default is <c>true</c>. |
| | | 14 | | /// </summary> |
| | 7 | 15 | | public bool IncludeLowercase { get; set; } = true; |
| | | 16 | | /// <summary> |
| | | 17 | | /// Whether to include uppercase letters. Default is <c>true</c>. |
| | | 18 | | /// </summary> |
| | 7 | 19 | | public bool IncludeUppercase { get; set; } = true; |
| | | 20 | | /// <summary> |
| | | 21 | | /// Whether to include digits. Default is <c>true</c>. |
| | | 22 | | /// </summary> |
| | 7 | 23 | | public bool IncludeDigits { get; set; } = true; |
| | | 24 | | /// <summary> |
| | | 25 | | /// Whether to include special characters. Default is <c>true</c>. |
| | | 26 | | /// </summary> |
| | 7 | 27 | | public bool IncludeSpecialCharacters { get; set; } = true; |
| | | 28 | | } |