Ejemplo n.º 1
0
 public override void GuardTypeSafety()
 {
     if (Lhs == null || Rhs == null || Lhs.ReturnType == null || Rhs.ReturnType == null)
     {
         return;
     }
     if (Lhs.ReturnType != Rhs.ReturnType)
     {
         throw ConvertException.StaticTypeSafety(Lhs.ReturnType, Rhs.ReturnType, Rhs.ToString());
     }
     Lhs.GuardTypeSafety();
     Rhs.GuardTypeSafety();
 }
Ejemplo n.º 2
0
 public override void GuardTypeSafety()
 {
     if (Lhs == null || Lhs.ReturnType == null)
     {
         return;
     }
     if (Lhs.ReturnType != typeof(string))
     {
         throw ConvertException.StaticTypeSafety(typeof(bool), Lhs.ReturnType, Lhs.ToString());
     }
     Lhs.GuardTypeSafety();
     if (Rhs == null || Rhs.ReturnType == null)
     {
         return;
     }
     Rhs.GuardTypeSafety();
 }