Ejemplo n.º 1
0
        public static IEnumerable <KeyValuePair <Person, string> > SplitFactorySections(this MyDictionary <string, MyDictionary <Person, string> > Factory,
                                                                                        string f, string s)
        {
            var first  = from factory in Factory from list in factory.Value where factory.Key == f select list;
            var second = from factory in Factory from list in factory.Value where factory.Key == s select list;

            return(first.Concat(second));
        }
Ejemplo n.º 2
0
        public static IEnumerable <KeyValuePair <Person, string> > SearchNameWorkers(this MyDictionary <string, MyDictionary <Person, string> > Factory, string query)
        {
            var search = from factory in Factory from list in factory.Value where factory.Key == query select list;

            return(search);
        }