Beispiel #1
0
 public DecimalValueConverter(IEnumerable <string> removeCharacters)
 {
     Guards.NotNull(removeCharacters, "removeCharacters cannot be null");
     foreach (var removeCharacter in removeCharacters)
     {
         Guards.NotNullOrEmpty(removeCharacter, "removeCharacter cannot be null");
     }
     this.RemoveCharacters = removeCharacters;
 }
Beispiel #2
0
 public PropertyValidator(BasePropertyDefinition definition)
 {
     Guards.NotNull(definition, "definition cannot be null");
     this.definition = definition;
 }
 public DateValueConverter(string inputFormat, string outputFormat = null)
 {
     Guards.NotNull(inputFormat, "format");
     this.InputFormat  = inputFormat;
     this.OutputFormat = outputFormat == null ? inputFormat : outputFormat;
 }
Beispiel #4
0
 public MatchEnumValueConverter(T value)
 {
     Guards.NotNull(value, "value");
     Value = value;
 }