// Pour appliquer le texte sur le bon commentaire public void ApplyText(string text) { switch (TagModified) { case TagParsingEnum.Summary: ListExtension.TextToList(ref comments, text); break; case TagParsingEnum.Parameters: if (ParamModified != null) { ListExtension.TextToList(ref ParamModified.Comment, text); } break; case TagParsingEnum.Return: ListExtension.TextToList(ref returnText, text); break; case TagParsingEnum.Property: ListExtension.TextToList(ref valueText, text); break; case TagParsingEnum.Remark: ListExtension.TextToList(ref remarksText, text); break; case TagParsingEnum.Example: ListExtension.TextToList(ref exampleText, text); break; } }
// To add a parameter private void AddParameter(string Name, string Result, bool multiline, bool generic) { List <string> tmp = null; if (string.IsNullOrEmpty(Result) == false) { // Conversion en liste tmp = new List <string>(); if (multiline == true) { ListExtension.TextToList(ref tmp, Result); } else { tmp.Add(Result); } } ParameterComment Temp = new ParameterComment(Name, tmp, generic); parameters.Add(Temp); }