what is the syntax to convert KeyValue pair onto a list object in C#?
public List<Profile> GetAll()
{
var request = QueryRequest.Create("SELECT META().id AS `key`, TOOBJECT(hc) as `value` FROM `test` as hc WHERE type='Profile';");
request.ScanConsistency(ScanConsistency.RequestPlus);
var response = _bucket.Query<KeyValuePair<string, Profile>>(request);
Dictionary<string, Profile> temp= response.Rows.ToDictionary(x => x.Key, x => x.Value);
List<Profile> prfs1 = new List<Profile>();
foreach (KeyValuePair<string, Profile> entry in temp)
{
foreach (string item in (entry.Value as JArray).ToObject<string[]>())
prfs.Add(item);
}
return prfs1 ;
}