score:2
Accepted answer
select(x => x.name==null || x.name==string.empty?"uncategorized":x.name)
Source: stackoverflow.com
Related Query
- Need to insert a string if array returns empty using linq queries
- Convert string to int array using LINQ
- Convert string array to custom object list using linq
- sort string array using LINQ
- Using LINQ to update string array
- NHibernate querying on a string collection using Linq results in either error or empty collection
- 'orderby' in linq using a string array c#
- How to search string not in char array using LinQ
- Find exact substring in string array using LINQ in C#
- C# - Convert delimited string array w/ duplicates to dictionary using LINQ
- Make a List of String array from a List of String using LINQ
- How to get data in string array or JSON format using linq to entities?
- C# Linq .Select(int.parse) on empty array results in "Input string was not in a correct format"
- Get Index of a String Array after Split using LINQ
- Using LINQ lambda to replace characters from array in string
- Remove "NULL rows" from a String array using LINQ
- How to get mismatch position using Linq or lambda operation on two string array
- Need Sum from multidimensional array using LINQ
- Getting triangles using LINQ returns empty triangles
- Is it possible to prevent LINQ from using variables in queries and instead use string literals?
- Convert delimited string to array and group using LINQ in C#
- how do i convert Dictionary string string to array of key value pair of string and string using linq and c#
- Using string methods in EF LINQ queries
- using LINQ to extract sections out of a string array into a new collection
- Find matching tag items in table from string array using linq
- How to convert a list of anonymous object to string array using linq for return using Json Result in ASP.NET MVC
- HTMLDecode string array using LINQ
- Insert Unicode string to DB using Linq
- List of TimeSpan to String Array using LINQ
- Sum any strings that are numbers from string array using LINQ
More Query from same tag
- Linq to DataTable (GROUP BY) when columns are not known
- search object list by computed property
- Case-insensitive Func
- Combine several similar SELECT-expressions into a single expression
- Simplify Lambda to Sum Sibling Tag Values using LINQ to XML
- Return row with minimum value using Linq
- Subscribing to a event in a closure while iterating through a collection results in the last item subscribing to the event
- The model item passed into the dictionary is of type .... {Models.App} but what I passed is {Models.App, System.Double}
- Create a CSV feed from a Model MVC
- Nullable type and .HasValue still throws a Null Exception
- How to change a value form ObservableCollection<AnyClass> with LINQ?
- Entity Framework I could not create the linq query
- C# List Join List And Filter From Another List
- How to use a string to create a EF order by expression?
- VB.Net "me" equivalent in Linq expression
- Expression.Like alternative for filtering based on text in c#
- How to do this simple weighted average in LINQ?
- How do you keep your Domain Logic seperate from DB/Persistence Logic with Linq-2-Sql?
- Sql Query to Linq using joins
- Group dictionary by values and return list of keys
- Check if list of string contains object property value, and if it does remove it from the list of strings
- Populate a list of Objects (With Linq?)
- When does Linq's Take, take the results?
- Sorting an XElement
- How do I use linq to do a WHERE against a collection object (using Netflix data source)
- How do I resolve multiple linq queries in one operation without using a base query?
- C# LINQ build expression with anonymous type
- In which layer to make linq-sql calls as SubmitChanges(), InsertOnSubmit() etc
- Select from two IEnumerables using LINQ
- LINQ: List of tuples to tuple of lists