Ok i am trying to use a Linq query to access a dictionary.
Using this Linq query:
but i get the error
Thanks for any help.
Code:
public static Dictionary<string, Client> Clients = new Dictionary<string, Client>();
Code:
IEnumerable<Staff> loginquery = from staff in Database.Staff where staff.Value.Passcode == txt_password.Text select staff;
Code:
Error 2 Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Client_Care.Classes.DB_Classes.Staff>>' to 'System.Collections.Generic.IEnumerable<Client_Care.Classes.DB_Classes.Staff>'. An explicit conversion exists (are you missing a cast?)
Comment