Get a list of local variables The method or operation is not implemented

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18
I am trying to get the password based on the username from a text file containing multiple user|pass lines.

I was trying to accomplish that using the following code but I got this error:

Get a list of local variables The method or operation is not implemented
Код:
            string filePath = project.Directory + @"logins.txt";
            string pass = File.ReadLines(filePath)
                .Where(fileLine => fileLine.StartsWith(profileEmail + "|"))
                .Select(fileLine => fileLine.Split('|')[1])
                .FirstOrDefault();
This works great in visual studio so I can only assume that Code Creator's C# version is outdated. Is that the case?
 

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
12
Баллы
18
Tried e different approach, same result/error:

Код:
List<string> logins = project.Lists["logins"].ToList();
string password = logins.FirstOrDefault(stringToCheck => stringToCheck.Contains(profileEmail))
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)