public IfOrUnlessStatement(IfOrUnlessKind kind, IAstElement condition, IEnumerable<IAstElement> body) { var bodyList = body.ToList(); Argument.RequireNotNullNotEmptyAndNotContainsNull("body", bodyList); this.Kind = kind; this.Condition = condition; this.Body = bodyList; }
public IfOrUnlessStatement(IfOrUnlessKind kind, IAstElement condition, IEnumerable <IAstElement> body) { var bodyList = body.ToList(); Argument.RequireNotNullNotEmptyAndNotContainsNull("body", bodyList); this.Kind = kind; this.Condition = condition; this.Body = bodyList; }