Compiling Zentity

问题 Compiling Zentity

  • Mittwoch, 13. Juli 2011 03:07
     
     

    While building the solution in Visual Studio I get this error :

    Error 686 'System.Collections.ObjectModel.ObservableCollection<Zentity.VisualExplorer.VisualExplorerService.Node>' does not contain a definition for 'ToList' and the best extension method overload 'System.Linq.Enumerable.ToList<TSource>(System.Collections.Generic.IEnumerable<TSource>)' has some invalid arguments C:\Zentity_Main\Product\Zentity.VisualExplorer\Controller.cs 1045 17 Zentity.VisualExplorer

    Along with other 4 errors similar to these one. Does anyone has any idea of what could be the solution to this problem? (B.T.W. There doesn't seem to be any references problem)

Alle Antworten

  • Mittwoch, 13. Juli 2011 07:39
     
     

    Can you provide the code excerpt.

    This error is not in the Zentity “original” source code.

    This might not be helpful I guess, but here is a correct use of Observable collection tolist

    ObservableCollection<string> obs = new ObservableCollection<string>();

                obs.Add("a");

                obs.Add("b");

                obs.Add("c");

                obs.Add("d");

                List<string> ls = obs.ToList<string>();

     

    If you can provide me the code excerpt or tell me what you are wanting to do will help me to provide a useful answer.

    -Regards