PhoneSystemCreateLookupTkey, Tobj Method

Created lookup collection which allow to search for the specific key

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public IOMLookup<Tkey, Tobj> CreateLookup<Tkey, Tobj>(
	Func<IEnumerable<Tobj>> getall,
	Func<Tobj, Tkey> keyFilter,
	string DataClass = null,
	IEqualityComparer<Tkey> comparer = null
)
where Tkey : class
where Tobj : class, IOMSnapshot

Parameters

getall  FuncIEnumerableTobj
Function which takes all objects of the specific class
keyFilter  FuncTobj, Tkey
object filter. returns null if object should not be taken into eccount
DataClass  String  (Optional)
Some of the object like DN based and Statictics is requiring specification of the exact DataClass
comparer  IEqualityComparerTkey  (Optional)
Lookup comparer

Type Parameters

Tkey
key type
Tobj
type of the object

Return Value

IOMLookupTkey, Tobj
new object which should be Disposed to remove it from the list

Implements

IPhoneSystemCreateLookupTkey, Tobj(FuncIEnumerableTobj, FuncTobj, Tkey, String, IEqualityComparerTkey)

See Also