示例#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");
     }
 }
示例#2
0
 public static void Validate(HelloWorldInput toValidate)
 {
     Validate(toValidate, new ArrayList());
 }