Semi Mod Loader
Static Public Member Functions | List of all members
Semi.ListConverter Class Reference

Static Public Member Functions

static TTarget[] ToArray< TSource, TTarget > (IList< TSource > list, ProxyList< TSource, TTarget >.RevertOperation op)
 Converts a list of one type into an array of another type based on delegates. More...
 
static ProxyList< TSource, TTarget > ToArrayProxyList< TSource, TTarget > (IList< TSource > list, ProxyList< TSource, TTarget >.ConvertOperation cop, ProxyList< TSource, TTarget >.RevertOperation rop)
 Converts a list of one type into a Semi.ProxyList`2 providing a proxy of the same type into an array of a target type. More...
 

Member Function Documentation

◆ ToArray< TSource, TTarget >()

static TTarget [] Semi.ListConverter.ToArray< TSource, TTarget > ( IList< TSource >  list,
ProxyList< TSource, TTarget >.RevertOperation  op 
)
inlinestatic

Converts a list of one type into an array of another type based on delegates.

Returns
The converted array.
Parameters
listThe source list to convert.
opThe operation to perform on each element in order to convert it into the target type..
Template Parameters
TSourceThe source type.
TTargetThe target type.

◆ ToArrayProxyList< TSource, TTarget >()

static ProxyList<TSource, TTarget> Semi.ListConverter.ToArrayProxyList< TSource, TTarget > ( IList< TSource >  list,
ProxyList< TSource, TTarget >.ConvertOperation  cop,
ProxyList< TSource, TTarget >.RevertOperation  rop 
)
inlinestatic

Converts a list of one type into a Semi.ProxyList`2 providing a proxy of the same type into an array of a target type.

Returns
The ProxyList backed by the converted array.
Parameters
listThe source list to convert.
copConvert (source to target) operation for the ProxyList.
ropRevert (target to source) operation for the ProxyList.
Template Parameters
TSourceThe source type.
TTargetThe target type.

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