public static void SetChildrenDone(this ProfileBehavior behavior) { behavior?.GetChildren()?.ForEach(b => { (b as IEnhancedProfileBehavior)?.Done(); }); }
public static void SetChildrenDone(this ProfileBehavior behavior) { behavior.GetChildren().ForEach(b => { if (b is IEnhancedProfileBehavior) { (b as IEnhancedProfileBehavior).Done(); } }); }
public static bool AreChildrenDone(this ProfileBehavior behavior) { return(behavior?.GetChildren()?.All(b => b.IsDone) ?? false); }
public static void ResetChildren(this ProfileBehavior behavior) { behavior?.GetChildren()?.ForEach(b => b?.ResetCachedDone()); }