Beispiel #1
0
 internal static void Validate(HelloWorldInput toValidate, IList validated)
 {
     if (validated.Contains(toValidate))
     {
         return;
     }
     validated.Add(toValidate);
     if (toValidate.Who == null)
     {
         throw new ArgumentException("Who is required");
     }
 }
Beispiel #2
0
 public static void Validate(HelloWorldInput toValidate)
 {
     Validate(toValidate, new ArrayList());
 }