Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="leftType"></param>
 /// <param name="rightType"></param>
 /// <param name="op"></param>
 /// <param name="tt"></param>
 /// <returns></returns>
 bool CheckOperator(TigerType leftType, TigerType rightType, Operators op, out TigerType tt)
 {
     if (leftType.SupportsOperator(rightType, op))
     {
         tt = leftType.GetOperationResult(rightType, op);
         return(true);
     }
     if (rightType.SupportsOperator(leftType, op))
     {
         tt = rightType.GetOperationResult(leftType, op);
         return(true);
     }
     tt = null;
     return(false);
 }