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