populate dictionary from the intersection of two list collections
-
Hi, I have a list like List> X where Items is a class... and another List like List Y where StudentTasks is a class which contains two variables PersonnelNumber(int),Iseligible(bool)....... In the above list X contains personnelnumber(int) which is the key for each list member in X... In the above list Y contains personnelnumber(int) which is one of the variable in each list member (ie StudentTasks )... actually the personnelnumbers in X were the subset of personnelnumbers present in Y which even contains personnal numbers other than in X....So as now Please let me knoiw how to fetch personnelnumbers from Y(which were present in X) and the associated Iseligible values from Y... and need to create a new Dictionary like var q=new Dictionary() where this should be populated with values from the above resultset...ie...key as personnelnumbers and iseligible as value....
-
Hi, I have a list like List> X where Items is a class... and another List like List Y where StudentTasks is a class which contains two variables PersonnelNumber(int),Iseligible(bool)....... In the above list X contains personnelnumber(int) which is the key for each list member in X... In the above list Y contains personnelnumber(int) which is one of the variable in each list member (ie StudentTasks )... actually the personnelnumbers in X were the subset of personnelnumbers present in Y which even contains personnal numbers other than in X....So as now Please let me knoiw how to fetch personnelnumbers from Y(which were present in X) and the associated Iseligible values from Y... and need to create a new Dictionary like var q=new Dictionary() where this should be populated with values from the above resultset...ie...key as personnelnumbers and iseligible as value....
Hi could you please supply the source code of the collections. thanks
-
Hi, I have a list like List> X where Items is a class... and another List like List Y where StudentTasks is a class which contains two variables PersonnelNumber(int),Iseligible(bool)....... In the above list X contains personnelnumber(int) which is the key for each list member in X... In the above list Y contains personnelnumber(int) which is one of the variable in each list member (ie StudentTasks )... actually the personnelnumbers in X were the subset of personnelnumbers present in Y which even contains personnal numbers other than in X....So as now Please let me knoiw how to fetch personnelnumbers from Y(which were present in X) and the associated Iseligible values from Y... and need to create a new Dictionary like var q=new Dictionary() where this should be populated with values from the above resultset...ie...key as personnelnumbers and iseligible as value....