private List <string> ConvertToList(List <string> source) { var result = new List <string>(); foreach (var item in source) { result.AddRange(htmlTranslator.Translate(item)); } return(result); }
private IList <string> TranslateItems(IHtmlToDataTranslator htmlToDataTranslator, IEnumerable <string> sourceItems) { var result = new List <string>(); if (htmlToDataTranslator != null) { foreach (var sourceItem in sourceItems) { result.AddRange(htmlToDataTranslator.Translate(sourceItem)); } } else { result.AddRange(sourceItems); } return(result.ToList()); }
public List <string> Convert(string sourceMember, ResolutionContext context) { var result = htmlToDataTranslator.Translate(sourceMember); return(result); }
public List <string> Convert(string source, List <string> destination, ResolutionContext context) { return(htmlToDataTranslator.Translate(source)); }