public static HashKeyImage AsHashKeyImage <T>(this T item, string[] keyFieldList, string[] fieldList) where T : new() { var hashKeyImage = new HashKeyImage(); hashKeyImage.Key = item.AsHashImage(keyFieldList); hashKeyImage.Image = item.AsHashImage(fieldList); return(hashKeyImage); }
public static HashKeyImage AsHashKeyImage <T>(this T item, string keyFieldListCSV, string fieldListCSV) where T : new() { var hashKeyImage = new HashKeyImage(); var keyFieldList = keyFieldListCSV.Split(','); var fieldList = fieldListCSV.Split(','); hashKeyImage.Key = item.AsHashImage(keyFieldList); hashKeyImage.Image = item.AsHashImage(fieldList); return(hashKeyImage); }