I think this would work:
var result = myClassObject.GroupBy(x => x.BillId)
.Where(x => x.Count() == 1)
.Select(x => x.First());
Fiddle here
More Related Contents:
- How to split Fromdate and Todate based on weekdays(Sat,Sun) using linq c#
- IEnumerable vs List – What to Use? How do they work?
- Flatten List in LINQ
- Check whether an array is a subset of another
- Quickest way to compare two generic lists for differences
- How can I get every nth item from a List?
- Combination of List
- Select distinct using linq [duplicate]
- Linq select objects in list where exists IN (A,B,C)
- Getting unique items from a list [duplicate]
- Differences between IQueryable, List, IEnumerator?
- How to get the closest number from a List with LINQ?
- Does Distinct() method keep original ordering of sequence intact?
- how to check if object already exists in a list
- Conversion from List to array T[]
- LINQ to find series of consecutive numbers
- C#: How to convert a list of objects to a list of a single property of that object?
- Easiest way to Rotate a List in c#
- Count property vs Count() method?
- How to find List has duplicate values in List [duplicate]
- Get a list of distinct values in List
- Using Linq Except not Working as I Thought
- How to Quickly Remove Items From a List
- Selecting unique elements from a List in C#
- List.Except is not working
- Sort one list by another
- Compare Two Lists Via One Property Using LINQ
- Return max repeated item in list
- Sorting a List
- What is the best way to check two List lists for equality in C#