Beispiel #1
0
 public override bool GetValue(DynamicValueContext context, out int value)
 {
     if (m_condition.IsValid(context))
     {
         return(m_ifTrue.GetValue(context, out value));
     }
     return(m_ifFalse.GetValue(context, out value));
 }
Beispiel #2
0
        public IEnumerable <Target> EnumerateTargets(DynamicValueContext context)
        {
            ISelectorForCast selectorForCast = m_condition.IsValid(context) ? m_selectorIfTrue : m_selectorIfFalse;

            if (selectorForCast == null)
            {
                return(Empty());
            }
            return(selectorForCast.EnumerateTargets(context));
        }
 public override bool IsValid(DynamicValueContext context)
 {
     return(!m_condition.IsValid(context));
 }