public List <ApiLanguageValuePair <ApiNames> > Convert(string source, List <ApiLanguageValuePair <ApiNames> > destination, ResolutionContext context) { if (string.IsNullOrEmpty(source)) { return(null); } return(_supportedLanguages.Select(l => { return new ApiLanguageValuePair <ApiNames> { Language = l, Value = ModelConverter.ResolveApiNames(source, _supportedLanguages, _references) }; }).ToList()); }
public ApiNames Convert(string source, ApiNames destination, ResolutionContext context) { return(ModelConverter.ResolveApiNames(source, _supportedLanguages, _references)); }