private static GetString ( this |
||
source | this |
|
location | string | |
strings | IEnumerable |
|
return | string |
private static string GetString(this IEnumerable<Cell> source, string location, IEnumerable<string> strings) {
var cell = source.FirstOrDefault(x => x.Location == location);
if (string.IsNullOrEmpty(cell?.Node.Value)) return null;
var id = cell.Node.Value.AsInt();
return strings.ElementAtOrDefault(id);
}