use string.Empty

This commit is contained in:
Kyle Spearrin 2020-03-16 21:07:54 -04:00
parent 5d719ba235
commit c6b37307b0

View file

@ -2,7 +2,7 @@
{ {
public class PasswordGeneratorPolicyOptions public class PasswordGeneratorPolicyOptions
{ {
public string DefaultType { get; set; } = ""; public string DefaultType { get; set; } = string.Empty;
public int MinLength { get; set; } public int MinLength { get; set; }
public bool UseUppercase { get; set; } public bool UseUppercase { get; set; }
public bool UseLowercase { get; set; } public bool UseLowercase { get; set; }
@ -13,13 +13,13 @@
public int MinNumberOfWords { get; set; } public int MinNumberOfWords { get; set; }
public bool Capitalize { get; set; } public bool Capitalize { get; set; }
public bool IncludeNumber { get; set; } public bool IncludeNumber { get; set; }
public bool InEffect() public bool InEffect()
{ {
return DefaultType != "" || return DefaultType != string.Empty ||
MinLength > 0 || MinLength > 0 ||
NumberCount > 0 || NumberCount > 0 ||
SpecialCount > 0 || SpecialCount > 0 ||
UseUppercase || UseUppercase ||
UseLowercase || UseLowercase ||
UseNumbers || UseNumbers ||