Quels parametres pour mon ToDictionary() ?
Bonsoir,
Ma fonction doit retourner un Dictionary<int, string>
Code:
1 2 3 4 5 6 7 8 9 10 11
|
public Dictionary<int, string> NotesCriteres(List<int> criteres)
{
var dataContext = new HabitatDataContext();
var liste = from t in dataContext.CRITERE
where criteres.Contains(t.ID_CRITERE)
select new { t.ID_CRITERE, t.NOTES };
return liste.ToDictionary<int, string>(?????);
} |
Pourriez vous me dire quels paramètres renseigner dans
Code:
liste.ToDictionary<int, string>(?????)
Merci beaucoup,
T.