Пример #1
0
 public LocalizedMessage WithDefaultMessage(String defaultMessage) {
   var lm = new LocalizedMessage(this);
   lm.DefaultMessage = defaultMessage;
   return lm;
 }
Пример #2
0
 public CountryIsUsValidator()
   : base() {
   LocalizedMessage = new LocalizedMessage("{0} must start with the 'US'");
 }
Пример #3
0
 public LocalizedMessage(LocalizedMessage lm) {
   Key = lm.Key;
   _resourceManager = lm._resourceManager;
   _resourceManagerFn = lm._resourceManagerFn;
   DefaultMessage = lm.DefaultMessage;
 }