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 Articles
- Linq methods not available for a collection implementing IEnumerable
- LINQ Source Code Available
- IEnumerable extension methods (System.Linq) unavailable when inheriting from collection and implementing enumerable interfaces
- linq deferred execution when using locks in methods that return IEnumerable
- I am trying to learn how to bind an IEnumerable LINQ collection to a repeater
- How to understand the following C# linq code of implementing the algorithm to return all combinations of k elements from n
- LINQ WHERE method alters source collection
- How do I convert IEnumerable to Collection with linq
- LINQ extension methods not available for EnumerableRowCollection<TRow>
- Linq Extension Methods Not available in Visual Studio 2015 Immediate Window
- Convert collection of IEnumerable using LINQ
- How does Linq use IEnumerable methods after an IOrderedEnumerable method?
- Why are LINQ operators defined as extension methods on IEnumerable interface and are not part of the interface itself? C#
- Why can't I use LINQ methods on my class implementing IEnumerable?
- creating Linq to sqlite dbml from DbLinq source code
- Obtain the Sum of an IEnumerable collection in only one LINQ expression
- Can I use a LINQ IEnumerable result as the data source for a Gtk.TreeView?
- How to use Linq to select items from a anonymous IEnumerable collection
- Extension methods not showing even on implementing IEnumerable
- Can we use Linq to sort a class based on its ID without implementing IEnumerable
- source code for LINQ 101 samples
- Add to collection if not already available with linq
- Find an optimized linq statement to find the closest sum in a nested IEnumerable collection
- How to Get a Object from IEnumerable collection using LINQ Lambda?
- Struct implementing IEnumerable yields unexpected error with LINQ
- c#: Using Linq to get a IEnumerable collection of XML Nodes to Traverse
- How to break link between source collection and LINQ result
- Inserting IEnumerable collection in an object using Linq
- EF Code First and linq extension methods - foreign keys, am i doing it wrong?
- c# Linq or code to extract groups from a single list of source data
- linq for 2 dimensional array with all
- LINQ into SortedList
- LINQ get rows from a table that don't exist in another table when using group by?
- Need help on developing LINQ Lambda expresssion to filter on a Schedule
- Linq Query from textboxes that might be empty (Coalesce)
- Many to Many and Linq: updating relationships
- Locate the record closest top 5000 meters before
- Transform SQL query to Linq left join clause incorrect
- How to count occurences of number stored in file containing multiple delimeters?
- LINQ, Getting the next and previous record in my table (I'm Confused)
- GroupBy on complex object (e.g. List<T>)
- Order by child table in entity framework
- How to Compare strings by Regex inside a LINQ Query?
- How to solve this Error in Linq : Operator '!=' cannot be applied to operands of type 'int' and 'System.Linq.IQueryable<int>'
- How to select all objects that match all the ids in a list?
- ObserveOn with Scheduler.NewThread does not observe so, if observer's OnNext is blocked and continued
- Abort ado.net query
- TDD with Linq Any() and All()
- JavaScript deferred execution
- Linq to EF - populate a (fairly simple) hierarchical object from EDM C#