when use DefaultIfEmpty in emulator mode works fine but javascript show me error.
check this example:
Code: Select all
List<Tuple<string, int>> tuples = new List<Tuple<string, int>>();
MessageBox.Show(tuples.Where(x => x.Item1 == "test").Select(x => x.Item1).DefaultIfEmpty("empty").FirstOrDefault());