예제 #1
0
 public override void Return <TReturnException>(object key, string messageFormat, object context = null)
 {
     if (Validatable.ToString().All(Char.IsDigit) == false)
     {
         ReturnResult <TReturnException>(key, messageFormat, context, new object[] { key });
     }
 }
예제 #2
0
 public override void Return <TReturnException>(object key, string messageFormat, object context = null)
 {
     if (Regex.IsMatch(Validatable.ToString()) == false)
     {
         ReturnResult <TReturnException>(key, messageFormat, context, new object[] { key, Regex.ToString() });
     }
 }