I am working on a example, where i need to use Dictionary.Keys.ToList(), it behaving differently in different file, in one file this code is working
Dictionary<string, List > _dictGroup;
List _lstGroupID = null;
_lstGroupID = dictGroup.Keys.ToList();
however same code is not working in activity file where using same i am getting following
"C:\MyProjects\Mobile\ExpendListBox\ExpendListBox\MainActivity.cs(34,34): Error CS1061: 'System.Collections.Generic.Dictionary<string,System.Collections.Generic.List>.KeyCollection' does not contain a definition for 'ToList' and no extension method 'ToList' accepting a first argument of type 'System.Collections.Generic.Dictionary<string,System.Collections.Generic.List>.KeyCollection' could be found (are you missing a using directive or an assembly reference?) (CS1061) (ExpendListBox)"
Does i am missing something!