public async Task ParseFlows(XContainer variables, XMileModel model) { if (variables == null) { throw new ArgumentNullException(nameof(variables)); } if (model == null) { throw new ArgumentNullException(nameof(model)); } foreach (var flow in variables.Descendants(_ns + "flow")) { await Flow.CreateInstance(flow.FirstAttribute.Value, model, ParseEquation(flow), ParseGraphicalFunction(flow), ParseRange(flow, "range"), ParseRange(flow, "scale"), ParseNonNegative(flow), ParseAccess(flow)); } }