/// <summary> /// Check if all pre-conditions are fulfilled /// </summary> protected bool CheckPreConditions(TSource source) { return((PreConditionFuncs.Count == 0) || PreConditionFuncs.All(c => c.Invoke(source))); }
/// <summary> /// Add a pre-conditions executed before a value will be resolved /// </summary> public void AddPreCondition(Func <TSource, bool> conditionFunc) { PreConditionFuncs.Add(conditionFunc); }