score:1
Accepted answer
All of your code in the question works fine for me. I don't get your error.
Perhaps try importing System.Reactive
too, but other than that it looks fine.
Source: stackoverflow.com
Related Articles
- LINQ Source Code Available
- Substring of a DateTime with Linq to Sql extensions
- Linq with where clause in many-to-many EF Code First object
- How to code the partial extensions that Linq to SQL autogenerates?
- LINQ with RX Extensions
- C# - Linq optimize code with List and Where clause
- Performance difference / improvement with custom Linq extensions
- creating Linq to sqlite dbml from DbLinq source code
- Stubbing Code for Test With Linq Expressions and Lambdas
- Reuse Linq to SQL code with entityframework
- Replacing loops with linq code
- Linq sub query when using a repository pattern with EF code first
- Linq to sql as object data source - designer problem with partial classes
- LINQ deferred execution with a function's result as source (e.g. Console.ReadLine)
- Accessing SQL Server time in code with LINQ
- How to swap the data source associated with a Linq query?
- Can't add a new record with an integer value into database by using linq from code C#
- Avoiding repeating code with Linq query + optional params
- How to merge two lists while adding metadata indicating value source with LINQ statement?
- Using Parallel Extensions or Parallel LINQ with LINQ Take
- Compiling Error with LINQ Sorting Code Using List<T>
- source code for LINQ 101 samples
- how to write a Linq query with a EF code first Many to Many relationship
- Relate two lists with LINQ extensions
- I need to save the XML file using linq with xml code in C#
- Linq Data Source WhereParameters with "\" in value
- Trouble with a LINQ 'filter' code throwing an error
- EF code first: using Linq with many-to-many relationship
- Reducing code complexity with LINQ
- Is there a better way to achieve this with Linq or a better code
- Amend list using linq via second list
- Can we apply the transaction scope for entire API actions on 1 request
- XElement.Add with variables
- Advanced search with LINQ to EF
- How to use LINQ with ServiceModel.Channels.Message
- How to use expression trees
- LINQ with reflection for nested property values
- Expression for OrderBy linq with inner expression
- Sequence operators not supported for type 'System.String'.
- C# Read specific property from a log file
- C# Object doesnt support FirstOrDefault() depending on the input parameter
- Decimal Precision Lost when saved to DB, C#. I am using Entity Framework
- Is it possible to rewrite the below code in Linq/Lambda approach
- how do i refactor this code?
- iterate through two lists
- Distinct value from collection by grouping and date
- LINQ projection combining date and list
- C# convert 1D array to 2D
- Optimizing LINQ within a large datatable
- What is difference between System.Linq.Enumerable.WhereListIterator & System.Linq.Enumerable.WhereSelectListIterator?