A class that allows binary operations
More...
|
| virtual IList< T > | FindBinaryList (TKey key) |
| | Retrieves a subset of the list matching the key More...
|
| |
| virtual T | FindBinary (TKey key) |
| | Retrieves a single entry from the list matching the key More...
|
| |
| virtual bool | Has (TKey key) |
| | Specifies if the BinaryList has the given key (similar to Contains or Any) More...
|
| |
| virtual int | BinarySearch (TKey key) |
| | Returns the index of the element (so that you know for sure if you found something) More...
|
| |
| virtual IEnumerable< T2 > | Intersect< T2 > (IEnumerable< T2 > list, Func< T2, TKey > keySelector) |
| | Returns the items from the provided enumeration that match (intersect) on the provided key (Eg. Join where selecting the provided enumeration objects) More...
|
| |
| virtual IEnumerable< T2 > | NonIntersect< T2 > (IEnumerable< T2 > list, Func< T2, TKey > keySelector) |
| | Returns the items from the provided enumeration that don't match (intersect) on the provided key (eg. left join where not exists; selecting the provided enumeration objects) More...
|
| |
A class that allows binary operations
- Template Parameters
-
| T | Any object type |
| TKey | The type of object (eg. string) that the list is ordered by (the key) - it must be IComparable |
◆ BinarySearch()
Returns the index of the element (so that you know for sure if you found something)
- Parameters
-
- Returns
- The index in the list, or -1 if not found
◆ FindBinary()
Retrieves a single entry from the list matching the key
- Parameters
-
- Returns
- The single item if found, otherwise the default value (eg. null, or "", or 0... etc)
◆ FindBinaryList()
Retrieves a subset of the list matching the key
- Parameters
-
- Returns
- The subset of the list (or empty list if none match)
◆ Has()
Specifies if the BinaryList has the given key (similar to Contains or Any)
- Parameters
-
- Returns
- True if the key was found in the list, false otherwise
◆ Intersect< T2 >()
Returns the items from the provided enumeration that match (intersect) on the provided key (Eg. Join where selecting the provided enumeration objects)
- Template Parameters
-
- Parameters
-
| list | The list containing those items which must be contained in the first list |
| keySelector | The key selector for the enumeration |
- Returns
- Items from the provided enumeration that match (intersect) on the provided key
◆ NonIntersect< T2 >()
Returns the items from the provided enumeration that don't match (intersect) on the provided key (eg. left join where not exists; selecting the provided enumeration objects)
- Template Parameters
-
- Parameters
-
| list | The list containing those items which must not be contained in the first list |
| keySelector | The key selector for the enumeration |
- Returns
- Items from the provided enumeration that don't match (intersect) on the provided key
◆ KeySelector
The documentation for this class was generated from the following file:
- C:/Users/dougb/Desktop/Sphyrnidae/New/Common/Common/BinaryList.cs