score:3
Accepted answer
You are misusing the select
on the HashSet
like this one:
new HashSet<Estructura>().Select(//... Means take from that new HashSet....
Of course a new HashSet
won't contain anything. This's why you get empty HashSets.
Source: stackoverflow.com
Related Articles
- could not instance a hashset inside of linq
- Syntax to execute code block inside Linq query?
- LINQ Source Code Available
- creating Linq to sqlite dbml from DbLinq source code
- source code for LINQ 101 samples
- C# LINQ Find List Inside Another List, Better way to code this than a foreach loop
- c# Linq or code to extract groups from a single list of source data
- Concat all strings inside a List<string> using LINQ
- Convert string[] to int[] in one line of code using LINQ
- How to convert linq results to HashSet or HashedSet
- Code equivalent to the 'let' keyword in chained LINQ extension method calls
- Linq code to select one item
- How are people unit testing code that uses Linq to SQL
- LINQ - Does the Where expression return new instance or reference to object instance
- Calling a method inside a Linq query
- How to get distinct instance from a list by Lambda or LINQ
- What actually happens when using async/await inside a LINQ statement?
- Could not find an implementation of the query pattern for source type 'System.Data.Entity.DbSet'
- The LINQ expression could not be translated and will be evaluated locally
- Using a partial class property inside LINQ statement
- Assigning values inside a LINQ Select?
- Using Linq select list inside list
- LINQ query to perform a projection, skipping or wrapping exceptions where source throws on IEnumerable.GetNext()
- Can I use a TryParse inside Linq Comparable?
- LINQ new instance when SingleOrDefault returns null
- Delete inside foreach with linq where
- Linq query to filter id inside a list of list c#
- Difference between cast and as inside a select in LINQ
- How to 'select new' inside Linq lambda expression?
- Enumerable.Empty<T>().AsQueryable(); This method supports the LINQ to Entities infrastructure and is not intended to be used directly from your code
- Linq complex queries C#
- Grafting LINQ onto C# 2 library
- Insert id into list if checkbox is checked
- Get top 3 most popular items c# linq EF
- ConcurrentDictionary.Where very slow for filtering based int array (Key field)
- Linq query on XML to Select multiple elements of subnodes
- Transforming a one to many sql query into a List of nested classes
- Are these the simplest ways to apply several different actions to a list of strings using LINQ?
- ASP.NET MVC - Select from two tables then compare
- Use LINQ to retrieve largest number from Properties of a collection, within a collection
- LINQ: Get all members with LAST order failed
- C# Dynamic Linq Query Multiple OR Logic
- LINQ - Combine multiple lists to form a new list and align them by key?
- Get a refined list using Linq
- What is the Linq Query of the following SQL
- How to split a dictionary into "n" parts
- how to check linq comparing date format in vb.net
- GridView doesn't show Linq to Object Result
- List in Linq where condition
- Generating Dynamic Linq For Jquery DataTables