score:2
Accepted answer
I cannot find any documentation for the version 15.1.7 but i assume that IEnumerable
is returned and therefore you first have to use Cast<T>()
or OfType<T>
to get an IEnumerable<T>
(see https://stackoverflow.com/a/7757411/3936440).
So i think you need to write
bool a = bar.ItemLinks.Cast<BarItemLink>().Any(x => x.Item.Tag.Equals(tag))
Source: stackoverflow.com
Related Query
- Linq methods not available for a collection implementing IEnumerable
- LINQ extension methods not available for EnumerableRowCollection<TRow>
- LINQ Source Code Available
- Linq Extension Methods Not available in Visual Studio 2015 Immediate Window
- linq - how do you do a query for items in one query source that are not in another one?
- Why are LINQ operators defined as extension methods on IEnumerable interface and are not part of the interface itself? C#
- Can I use a LINQ IEnumerable result as the data source for a Gtk.TreeView?
- Extension methods not showing even on implementing IEnumerable
- Extension method (like Take()) not available for the LINQ query, Any reason why?
- IEnumerable extension methods (System.Linq) unavailable when inheriting from collection and implementing enumerable interfaces
- source code for LINQ 101 samples
- Add to collection if not already available with linq
- C# LINQ code not working for XML parse
- How to use LINQ To Entities for filtering when many methods are not supported?
- Linq IEnumerable Concat not working for list of objects containing second list as child object
- Could not find an implementation of the query pattern for source type 'System.Data.Entity.DbSet'
- Using LINQ to Objects to find items in one collection that do not match another
- Order of LINQ extension methods does not affect performance?
- C# 6 null conditional operator does not work for LINQ query
- IEnumerable Concat Missing, does not contain a definition for 'Concat'
- linq deferred execution when using locks in methods that return IEnumerable
- In which cases do I need to create two different extension methods for IEnumerable and IQueryable?
- Enumerable.Empty<T>().AsQueryable(); This method supports the LINQ to Entities infrastructure and is not intended to be used directly from your code
- Workarounds for using custom methods/extension methods in LINQ to Entities
- NHibernate.ISession does not contain a definition for Linq
- I am trying to learn how to bind an IEnumerable LINQ collection to a repeater
- Max in linq to NHibernate for not exist data in database
- ThenInclude not working for an Entity Framework LINQ query
- How to understand the following C# linq code of implementing the algorithm to return all combinations of k elements from n
- C# Linq - get objects with not empty collection
More Query from same tag
- Tracking last visited nodes - C#
- Return multiple attributes of an element to a list. LINQ to XML
- Replace, Insert, Delete operations on IEnumerable
- Refactor GroupBy to avoid slowing down operation on big dataset
- Dynamic Lambda Expression call
- Multiple LINQ aggregate functions on different fields apply to the entire set
- Linq to Objects Generic Duplicate Method
- Combobox Display items
- LINQ Query to create Dictionary of Dictionaries
- LINQ where in List
- Compiling query with IQueryable<bool> return value
- Allowing a user to select column headers to import
- How do I display a table to list using distinct?
- Multi Includes Timeout
- LINQ to Entities does not recognize the method,and this method cannot be translated into a store expression
- "LINQ to Entities does not recognize the method" when Convert to Int 32
- The parameter 'p' was not bound in the specified LINQ to Entities query expression
- how to retrieve data from helper class property using Linq query C#
- NHibernate 3.0: No FirstOrDefault() with QueryOver?
- LINQ InvalidCastException error
- MVC search a LINQ query
- Is it possible to return IEnumerable of anonymous objects from DataContext.ExecuteQuery?
- How to create linq predicate with multiple nested "ands" and "ors"
- Performing a Sum() with LINQ query on database
- LINQ: Destination array is not long enough to copy all the items in the collection.
- How to use LINQ to find a sum?
- Uniquifying a list (C#)
- Apply filters only if parameters has values in linq
- Vb.net equivalent query for c# linq query
- Linq to Entities simple group query