Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
    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);
                }
            }
        }
    }
Esempio n. 3
0
 /// <summary>
 /// <see cref="IElement.Check" />
 /// </summary>
 public override bool Check(bool blnDeep)
 {
     return(!blnDeep || _value.Check(true));
 }
Esempio n. 4
0
 /// <summary>
 /// <see cref="IElement.Check" />
 /// </summary>
 public override bool Check(bool deep)
 {
     return(_leftValue != null && _rightValue != null && (!deep || (_leftValue.Check(true) && _rightValue.Check(true))));
 }