Sphyrnidae Common Library  2.0.1
Shared Utilities/Library
Sphyrnidae.Common.CaseInsensitiveBinaryList< T > Class Template Reference

A class that allows binary operations based on a case-insensitive property on the object More...

Inheritance diagram for Sphyrnidae.Common.CaseInsensitiveBinaryList< T >:
Sphyrnidae.Common.BinaryList< T, string >

Public Member Functions

override IList< T > FindBinaryList (string key)
 Retrieves a subset of the list matching the key More...
 
override T FindBinary (string key)
 Retrieves a single entry from the list matching the key More...
 
override bool Has (string key)
 Specifies if the BinaryList has the given key (similar to Contains or Any) More...
 
override int BinarySearch (string key)
 Returns the index of the element (so that you know for sure if you found something) More...
 
- Public Member Functions inherited from Sphyrnidae.Common.BinaryList< T, string >
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...
 

Additional Inherited Members

- Properties inherited from Sphyrnidae.Common.BinaryList< T, string >
Func< T, TKey > KeySelector [get]
 

Detailed Description

A class that allows binary operations based on a case-insensitive property on the object

Template Parameters
TAny object type

Member Function Documentation

◆ BinarySearch()

override int Sphyrnidae.Common.CaseInsensitiveBinaryList< T >.BinarySearch ( string  key)

Returns the index of the element (so that you know for sure if you found something)

Parameters
keyThe value of the key
Returns
The index in the list, or -1 if not found

◆ FindBinary()

override T Sphyrnidae.Common.CaseInsensitiveBinaryList< T >.FindBinary ( string  key)

Retrieves a single entry from the list matching the key

Parameters
keyThe value of the key
Returns
The single item if found, otherwise the default value (eg. null, or "", or 0... etc)

◆ FindBinaryList()

override IList<T> Sphyrnidae.Common.CaseInsensitiveBinaryList< T >.FindBinaryList ( string  key)

Retrieves a subset of the list matching the key

Parameters
keyThe value of the key
Returns
The subset of the list (or empty list if none match)

◆ Has()

override bool Sphyrnidae.Common.CaseInsensitiveBinaryList< T >.Has ( string  key)

Specifies if the BinaryList has the given key (similar to Contains or Any)

Parameters
keyThe value of the key
Returns
True if the key was found in the list, false otherwise

The documentation for this class was generated from the following file: