score:1
Accepted answer
how about:
list<items> items = statscont.orderbydescending(x => x.value.numberofitems)
.take(10)
.select(x => x.value)
.tolist();
score:8
have you tried:
founditems.values.tolist();
Source: stackoverflow.com
Related Query
- How to convert dictionary with object to list of that type?
- How to convert Dictionary to List with mixing of values and keys?
- How to get the property from a list of object that is a string with the lowest numeric value
- How to extract values from a list of dictionaries and group and convert to a single dictionary with Linq?
- How to bind and save an object containing a list of objects to database context in ASP.NET MVC with EF code first?
- how to compare a list type of object with list type int
- How to convert class properties of single type to list of that type
- How do I copy one list to another that has an object with additional properties in C# ? (without a foreach)
- linq lambda convert object with list of objects of the same type to another object
- Convert to list a object with anonymous type
- How to get an IDS list of a Json type object with LINQ
- How to create a dictionary from a list with an object as key
- How to merge a list of lists with same type of items to a single list of items?
- C#: How to convert a list of objects to a list of a single property of that object?
- LINQ - Convert List to Dictionary with Value as List
- Convert CollectionBase to List or data type usable with Linq
- How can I set properties on all items from a linq query with values from another object that is also pulled from a query?
- How can I find object in List with Linq?
- How to convert a 2-d array into a dictionary object
- How to convert Generic List<anonymous type > to Generic List <Classname>?
- How to convert list of objects with two fields to array with one of them using LINQ
- How to create a list from filtering 2 lists with linq to object
- C# Code Contracts -- How to ensure that a collection of items contains items with unique properties?
- How to Convert Anonymous Type to List <dynamic> using Linq to SQL in C#
- How to convert nested object from one type to another
- How to make a SUM of Dictionary Value nested into a list with LINQ?
- Linq: Convert list of object to dictionary, with an object member as value
- How can I speed up this linq query on a List<> with search criteria on 3 attributes in the list object
- How to merge two lists of different types into one list of new type that contains both types?
- How can I select using LINQ for an entry that contains a LIST with more than one row?
More Query from same tag
- Update based on Find at another table
- groupby filtering in linq
- Convert a n-m relationship join query to Linq
- Calculate average in LINQ C# with string representation of property name
- Does LINQ skip & take have decent performance?
- Linq contains not working
- C# compare two Lists by one Property and change value of first List
- How can I get a value inside the select query using linq?
- Working with LINQ to SQL and DataGridView
- EF and Linq with self referential table
- create a dictionary using 2 lists using LINQ
- Summing a column gives null in C#/ASP.NET
- Change a Linq object inside foreach statement?
- Select all rows with distinct column value using LINQ
- C# Visual Studio: How do I update a DB from Edit with DataGridView using LINQ?
- Inner join linq to webgrid
- Using LINQ how do I create a List of one particular field of an entity from a collection entities
- how to print a result of linq query from controller in the view?
- linq for 2 dimensional array with all
- List<> Get next or previous element that satisfys a condition
- Sort a List by a property and then by another
- Linq no-noes - the catch all sql-like select?
- Finding objects which contains at least all elements from subset using RavenDB and LINQ
- insert null value into Database when textbox is empty
- Add list of items using linq
- DataContext invalid object
- Join string from list of string on range of index
- How to rewrite this LINQ using join with lambda expressions?
- Sorting a `List<object>` by object properties
- How add missing sequence in a list based on month and year?