Exemplo n.º 1
0
 public static string Required <T>(string paramName, ParameterEnum <T> value, bool quotationAround = false)
 => quotationAround ? $" {paramName}=\"{value}\"" : $" {paramName}={value.Value}";
Exemplo n.º 2
0
 public bool Equals(ParameterEnum <T> other)
 {
     return(other != null &&
            EqualityComparer <T> .Default.Equals(Value, other.Value));
 }
Exemplo n.º 3
0
 public static string Optional <T>(string paramName, ParameterEnum <T> value = null, bool quotationAround = false)
 => quotationAround ? $"{(value != null ? $" {paramName}=\"{value}\"" : "")}" : $"{(value != null ? $" {paramName}={value.Value}" : "")}";