PhoneSystemCreateLookupTkey, Tobj Method
Created lookup collection which allow to search for the specific key
Namespace: TCX.ConfigurationAssembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
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
- 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
- Tkey
- key type
- Tobj
- type of the object
IOMLookupTkey,
Tobjnew object which should be Disposed to remove it from the list
IPhoneSystemCreateLookupTkey, Tobj(FuncIEnumerableTobj, FuncTobj, Tkey, String, IEqualityComparerTkey)