foreach (var name in parent.names) { if name.lastname == null) { Violated = true; this.message = \"lastname reqd\"; } if (!Violated)
Just use the statement:
break;