internal override bool IsCachable() { if (Condition.IsCachable()) { bool condition = Condition.GetValue(); return((condition && TrueArg.IsCachable()) || (!condition && FalseArg.IsCachable())); } return(false); }
/// <summary> /// Executes the object and returns the contained value. /// </summary> public override T GetValue() { if (Condition.GetValue()) { return(TrueArg.GetValue()); } return(FalseArg.GetValue()); }