protected override IEnumerable <ITag> DocumentModel(IModel model) { if (model is Simulations && model.Children.Any()) { model = model.Children[0]; } if (!string.IsNullOrEmpty(path)) { IVariable variable = model.FindByPath(path); if (variable != null && variable.Value is IModel value) { model = value; } } ParamsInputsOutputs doco = new ParamsInputsOutputs(model); return(doco.Document()); }
/// <summary> /// Document the model. /// </summary> /// <param name="model">Model to be documented.</param> protected override IEnumerable <ITag> DocumentModel(IModel model) { ParamsInputsOutputs doco = new ParamsInputsOutputs(model); return(doco.Document()); }