Click or drag to resize

ModelingUtilsUpdateListFromModelingListT1, T2 Method

Updates a list (toList) of objects based on another (fromList). Using the comparison function, each object is considered as missing (and then created using the creation function), as already existing (then updated using the update function) or as obsolete (then removed from toList).

Namespace:  Packflow.Modeling
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public static void UpdateListFromModelingList<T1, T2>(
	ModelingList<T1> fromList,
	ModelingList<T2> toList,
	Func<T1, T2, bool> compareFunction,
	Func<T1, T2> createFunction,
	Action<T1, T2> updateFunction
)
where T1 : ModelingObject
where T2 : ModelingObject

Parameters

fromList
Type: Packflow.ModelingModelingListT1
toList
Type: Packflow.ModelingModelingListT2
compareFunction
Type: SystemFuncT1, T2, Boolean
createFunction
Type: SystemFuncT1, T2
updateFunction
Type: SystemActionT1, T2

Type Parameters

T1
T2
See Also