XAMARIN: CS8370 Error for Database Query code

Haydn Parsons 0 Reputation points
2023-04-01T16:13:03.4+00:00

Hi, I'm stuck with some syntax, I'm getting the error code CS8370 (which i believe is just outdated syntax being used) ill post a screenshot of the error, this is the line of code It pulling the error at, Its just a simple query to check if login email and password is in the database

var myquery = db.Table<regUserData>().Where(u => u.Email.Equals(EntryUserEmail.Text) && u.Password.Equals(EntryUserPassword.Text)).FirstOrDefault;

Screenshot 2023-04-01 171234.png Thanks for any help in advance :)

[Text of error edited in for clarity]

CS8370: Feature 'inferred delegate type' is not available in C# 7.3. Please use language version 10.0 or later

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.