/// <summary> /// <see cref="IElement.Check" /> /// </summary> public override bool Check(bool deep) { if (deep) { if (_value == null || !_value.Check(true)) { return(false); } } return(!_tempName.Equals(string.Empty) && _value != null); }
public void Manipulate <T>(IEnumerable <IValue <T> > pool) { foreach (int i in Enumerable.Range(0, pool.Count())) { IValue <T> firstValue = pool.ElementAt(i); foreach (IValue <T> secondValue in pool.Skip(i)) { if (firstValue.Check(secondValue)) { firstValue.InteractionA(secondValue); } else { firstValue.InteractionB(secondValue); } } } }
/// <summary> /// <see cref="IElement.Check" /> /// </summary> public override bool Check(bool blnDeep) { return(!blnDeep || _value.Check(true)); }
/// <summary> /// <see cref="IElement.Check" /> /// </summary> public override bool Check(bool deep) { return(_leftValue != null && _rightValue != null && (!deep || (_leftValue.Check(true) && _rightValue.Check(true)))); }